From 9497c489885a575c4b2ac58823ff1266f6779c68 Mon Sep 17 00:00:00 2001 From: Roberto Date: Thu, 22 Nov 2018 09:56:12 +0100 Subject: [PATCH] added tasks for removing worki and job folders --- smartgears/dm_pool_manager/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/smartgears/dm_pool_manager/tasks/main.yml b/smartgears/dm_pool_manager/tasks/main.yml index 3f06fda4..1c051250 100644 --- a/smartgears/dm_pool_manager/tasks/main.yml +++ b/smartgears/dm_pool_manager/tasks/main.yml @@ -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 }}