added tasks for removing worki and job folders

This commit is contained in:
Roberto Cirillo 2018-11-22 09:56:12 +01:00
parent 98fab03849
commit 9497c48988
1 changed files with 11 additions and 0 deletions

View File

@ -21,6 +21,17 @@
file: path={{ smartgears_instance_path }}/webapps/{{ dm_pool_manager_name }} state=absent
when: dm_pool_manager_download is changed
- name: Remove the work folder
file: dest={{ smartgears_user_home }}/dataminer-pool-manager/work state=absent
file: dest={{ smartgears_user_home }}/dataminer-pool-manager/work state=directory
when: dm_pool_manager_download is changed
- name: Remove the job folder
file: dest={{ smartgears_user_home }}/dataminer-pool-manager/jobs state=absent
file: dest={{ smartgears_user_home }}/dataminer-pool-manager/jobs state=directory
when: dm_pool_manager_download is changed
- name: Create the dm_pool_manager working directory
file: path={{ smartgears_instance_path }}/webapps/{{ dm_pool_manager_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}