From 988eafbe75b045c0d2b79e4d1f4a5f0cbc716519 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 25 Jan 2018 15:12:19 +0100 Subject: [PATCH] library/roles/smartgears/sis_geotk_dt_plugin: More readable task names. Enable the data transfer service. --- smartgears/sis_geotk_dt_plugin/tasks/main.yml | 7 ++++--- smartgears/sis_geotk_dt_plugin/vars/main.yml | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 smartgears/sis_geotk_dt_plugin/vars/main.yml diff --git a/smartgears/sis_geotk_dt_plugin/tasks/main.yml b/smartgears/sis_geotk_dt_plugin/tasks/main.yml index 1c42cd92..f23960a7 100644 --- a/smartgears/sis_geotk_dt_plugin/tasks/main.yml +++ b/smartgears/sis_geotk_dt_plugin/tasks/main.yml @@ -9,7 +9,7 @@ tags: [ 'smartgears', 'sis_geotk', 'tomcat' ] - block: - - name: Get the Sis geotk data transfer uber plugin + - name: Get the Sis geotk data transfer uber jar 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 @@ -21,13 +21,14 @@ 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 jar 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_create_dir | changed) notify: Restart smartgears - - name: Get the Sis geotk data transfer uber plugin + - name: Get the Sis geotk data transfer jar 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 + notify: Restart smartgears - 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 diff --git a/smartgears/sis_geotk_dt_plugin/vars/main.yml b/smartgears/sis_geotk_dt_plugin/vars/main.yml new file mode 100644 index 00000000..6b4f428c --- /dev/null +++ b/smartgears/sis_geotk_dt_plugin/vars/main.yml @@ -0,0 +1,3 @@ +--- +data_transfer_service_install: True +