forked from ISTI-ansible-roles/ansible-roles
sis_geotk_dt_plugin: use the keep_name=yes variable to keep the version name of the plugin jar.
This commit is contained in:
parent
a73b691545
commit
098e645041
|
@ -9,10 +9,6 @@
|
||||||
tags: [ 'smartgears', 'sis_geotk', 'tomcat' ]
|
tags: [ 'smartgears', 'sis_geotk', 'tomcat' ]
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Get the Sis geotk data transfer uber plugin
|
|
||||||
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
|
|
||||||
|
|
||||||
- name: Get the Sis geotk data transfer uber plugin
|
- name: Get the Sis geotk data transfer uber plugin
|
||||||
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_downloads_dir }}/{{ sis_geotk_dt_plugin_file }}
|
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_downloads_dir }}/{{ sis_geotk_dt_plugin_file }}
|
||||||
register: sis_geotk_download
|
register: sis_geotk_download
|
||||||
|
@ -24,15 +20,15 @@
|
||||||
- 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
|
||||||
|
|
||||||
- name: Copy the Sis geotk data transfer plugin to its final destination
|
|
||||||
copy: src={{ smartgears_downloads_dir }}/{{ sis_geotk_dt_plugin_file }} dest={{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }}/WEB-INF/lib/plugins/{{ sis_geotk_dt_plugin_name }}/{{ sis_geotk_dt_plugin_file }} remote_src=yes
|
|
||||||
notify: Restart smartgears
|
|
||||||
|
|
||||||
- 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_download | changed)
|
||||||
notify: Restart smartgears
|
notify: Restart smartgears
|
||||||
|
|
||||||
|
- name: Get the Sis geotk data transfer uber plugin
|
||||||
|
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_instance_path }}/webapps/{{ data_trasfer_service_name }}/WEB-INF/lib/plugins/{{ sis_geotk_dt_plugin_name }} keep_name=yes
|
||||||
|
when: (sis_geotk_download | changed)
|
||||||
|
|
||||||
- name: Remove the Sis geotk uber jar org and META-INF directories
|
- 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
|
file: dest={{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }}/WEB-INF/lib/plugins/{{ sis_geotk_dt_plugin_name }}/{{ item }} state=absent
|
||||||
with_items:
|
with_items:
|
||||||
|
|
Loading…
Reference in New Issue