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.

This commit is contained in:
Andrea Dell'Amico 2017-12-15 17:38:40 +01:00
parent 38d899f422
commit 3d7c3b237d
1 changed files with 2 additions and 1 deletions

View File

@ -19,10 +19,11 @@
- name: Create the plugin directory inside data transfer - 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 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 - 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 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 notify: Restart smartgears
- name: Get the Sis geotk data transfer uber plugin - name: Get the Sis geotk data transfer uber plugin