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
|
2017-11-09 18:37:28 +01:00
|
|
|
file: dest={{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }}/WEB-INF/lib/plugins/{{ sis_geotk_dt_plugin_name }} state=absent
|
|
|
|
|
2017-09-14 17:25:23 +02:00
|
|
|
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:
|
2018-01-25 15:12:19 +01:00
|
|
|
- name: Get the Sis geotk data transfer uber jar
|
2017-11-16 16:37:36 +01:00
|
|
|
maven_artifact: artifact_id={{ sis_geotk_dt_plugin_name }} version={{ sis_geotk_dt_plugin_version }} group_id={{ sis_geotk_dt_plugin_group_id }} extension={{ sis_geotk_dt_plugin_extension }} repository_url={{ smartgears_global_base_url }} classifier={{ sis_geotk_dt_plugin_classifier }} dest={{ smartgears_downloads_dir }}/{{ sis_geotk_dt_plugin_uber_file }}
|
|
|
|
register: sis_geotk_download
|
2017-09-14 17:23:51 +02:00
|
|
|
|
|
|
|
- name: Remove the old Sis geotk data transfer plugin
|
2017-11-09 18:37:28 +01:00
|
|
|
file: dest={{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }}/WEB-INF/lib/plugins/{{ sis_geotk_dt_plugin_name }} state=absent
|
2017-09-14 17:23:51 +02:00
|
|
|
when: (sis_geotk_download | changed)
|
|
|
|
|
2017-11-16 16:05:22 +01:00
|
|
|
- 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
|
2017-12-15 17:38:40 +01:00
|
|
|
register: sis_geotk_create_dir
|
2017-11-16 16:05:22 +01:00
|
|
|
|
2018-01-25 15:12:19 +01:00
|
|
|
- name: Unarchive the Sis geotk data transfer uber jar to expose its libraries
|
2017-11-16 16:05:22 +01:00
|
|
|
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
|
2017-12-15 17:38:40 +01:00
|
|
|
when: (sis_geotk_create_dir | changed)
|
2017-11-16 16:05:22 +01:00
|
|
|
notify: Restart smartgears
|
|
|
|
|
2018-01-25 15:12:19 +01:00
|
|
|
- name: Get the Sis geotk data transfer jar
|
2017-11-16 16:37:36 +01:00
|
|
|
maven_artifact: artifact_id={{ sis_geotk_dt_plugin_name }} version={{ sis_geotk_dt_plugin_version }} group_id={{ sis_geotk_dt_plugin_group_id }} extension={{ sis_geotk_dt_plugin_extension }} repository_url={{ smartgears_global_base_url }} dest={{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }}/WEB-INF/lib/plugins/{{ sis_geotk_dt_plugin_name }} keep_name=yes
|
2018-01-25 15:12:19 +01:00
|
|
|
notify: Restart smartgears
|
2017-11-16 16:24:28 +01:00
|
|
|
|
2017-11-16 16:05:22 +01:00
|
|
|
- name: Remove the Sis geotk uber jar org and META-INF directories
|
|
|
|
file: dest={{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }}/WEB-INF/lib/plugins/{{ sis_geotk_dt_plugin_name }}/{{ item }} state=absent
|
|
|
|
with_items:
|
|
|
|
- org
|
|
|
|
- 'META-INF'
|
|
|
|
notify: Restart smartgears
|
2017-11-09 18:37:28 +01:00
|
|
|
|
2017-09-14 17:23:51 +02:00
|
|
|
become: True
|
|
|
|
become_user: '{{ smartgears_user }}'
|
|
|
|
when: sis_geotk_dt_plugin_install
|
|
|
|
tags: [ 'smartgears', 'sis_geotk', 'tomcat' ]
|
|
|
|
|