From 3d7c3b237d28d6a31b14e7b2f72cc42e431b7575 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 15 Dec 2017 17:38:40 +0100 Subject: [PATCH] library/roles/smartgears/sis_geotk_dt_plugin/tasks/main.yml: Fix the unarchive task so that we execute it when the plugin directory was manually removed. --- smartgears/sis_geotk_dt_plugin/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smartgears/sis_geotk_dt_plugin/tasks/main.yml b/smartgears/sis_geotk_dt_plugin/tasks/main.yml index e69954e7..1c42cd92 100644 --- a/smartgears/sis_geotk_dt_plugin/tasks/main.yml +++ b/smartgears/sis_geotk_dt_plugin/tasks/main.yml @@ -19,10 +19,11 @@ - name: Create the plugin directory inside data transfer file: dest={{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }}/WEB-INF/lib/plugins/{{ sis_geotk_dt_plugin_name }} state=directory + register: sis_geotk_create_dir - name: Unarchive the Sis geotk data transfer uber plugin to expose its libraries unarchive: src={{ smartgears_downloads_dir }}/{{ sis_geotk_dt_plugin_uber_file }} dest={{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }}/WEB-INF/lib/plugins/{{ sis_geotk_dt_plugin_name }}/ copy=no - when: (sis_geotk_download | changed) + when: (sis_geotk_create_dir | changed) notify: Restart smartgears - name: Get the Sis geotk data transfer uber plugin