2017-09-14 17:23:51 +02:00
|
|
|
---
|
2017-09-14 17:25:23 +02:00
|
|
|
- block:
|
|
|
|
- name: Remove the old Sis geotk data transfer plugin
|
|
|
|
shell: rm -f {{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }}/WEB-INF/lib/{{ sis_geotk_dt_plugin_name }}-*-jar-with-dependencies.jar
|
|
|
|
|
|
|
|
become: True
|
|
|
|
become_user: '{{ smartgears_user }}'
|
|
|
|
when: not sis_geotk_dt_plugin_install
|
|
|
|
tags: [ 'smartgears', 'sis_geotk', 'tomcat' ]
|
|
|
|
|
2017-09-14 17:23:51 +02:00
|
|
|
- block:
|
|
|
|
- name: Get the Sis geotk data transfer plugin and install it inside the smart executor
|
|
|
|
maven_artifact: artifact_id={{ sis_geotk_dt_plugin_name }} version={{ sis_geotk_dt_plugin_version | default(omit) }} group_id={{ sis_geotk_dt_plugin_group_id }} extension={{ sis_geotk_dt_plugin_extension | default('war') }} repository_url={{ smartgears_global_base_url }} classifier={{ sis_geotk_dt_plugin_classifier }} dest={{ smartgears_downloads_dir }}/{{ sis_geotk_dt_plugin_file }}
|
|
|
|
register: sis_geotk_download
|
|
|
|
|
|
|
|
- name: Remove the old Sis geotk data transfer plugin
|
|
|
|
shell: rm -f {{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }}/WEB-INF/lib/{{ sis_geotk_dt_plugin_name }}-*-jar-with-dependencies.jar
|
|
|
|
when: (sis_geotk_download | changed)
|
|
|
|
|
|
|
|
- name: Copy the Sis geotk data transfer plugin to its final destination
|
2017-09-14 17:43:36 +02:00
|
|
|
copy: src={{ smartgears_downloads_dir }}/{{ sis_geotk_dt_plugin_file }} dest={{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }}/WEB-INF/lib/{{ sis_geotk_dt_plugin_file }} remote_src=yes force=yes
|
2017-09-14 17:23:51 +02:00
|
|
|
notify: Restart smartgears
|
|
|
|
|
|
|
|
become: True
|
|
|
|
become_user: '{{ smartgears_user }}'
|
|
|
|
when: sis_geotk_dt_plugin_install
|
|
|
|
tags: [ 'smartgears', 'sis_geotk', 'tomcat' ]
|
|
|
|
|