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' ]
|
||||
|
||||
- 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
|
||||
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
|
||||
|
@ -24,15 +20,15 @@
|
|||
- 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
|
||||
|
||||
- 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
|
||||
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)
|
||||
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
|
||||
file: dest={{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }}/WEB-INF/lib/plugins/{{ sis_geotk_dt_plugin_name }}/{{ item }} state=absent
|
||||
with_items:
|
||||
|
|
Loading…
Reference in New Issue