From 8892e0f257ac155826a359e4a361992320852b4a Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 13 Sep 2017 18:24:31 +0200 Subject: [PATCH] Fix the accounting_aggregator_se_plugin upgrade. --- .../accounting_aggregator_se_plugin/tasks/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/smartgears/accounting_aggregator_se_plugin/tasks/main.yml b/smartgears/accounting_aggregator_se_plugin/tasks/main.yml index 6b5a9827..40c3433b 100644 --- a/smartgears/accounting_aggregator_se_plugin/tasks/main.yml +++ b/smartgears/accounting_aggregator_se_plugin/tasks/main.yml @@ -1,11 +1,17 @@ --- - block: + - name: Get the accounting aggregator plugin and install it inside the smart executor + maven_artifact: artifact_id={{ accounting_aggregator_se_plugin_name }} version={{ accounting_aggregator_se_plugin_version | default(omit) }} group_id={{ accounting_aggregator_se_plugin_group_id }} extension={{ accounting_aggregator_se_plugin_extension | default('war') }} repository_url={{ smartgears_global_base_url }} classifier={{ accounting_aggregator_se_plugin_classifier }} dest={{ smartgears_downloads_dir }}/{{ accounting_aggregator_se_plugin_file }} + register: accounting_aggregator_download + - name: Remove the old accounting aggregator plugin shell: rm -f {{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/accounting-aggregator-se-plugin-*-jar-with-dependencies.jar + when: (accounting_aggregator_download | changed) tags: [ 'smartgears', 'accounting_aggregator_se', 'tomcat' ] - - name: Get the accounting aggregator plugin and install it inside the smart executor - maven_artifact: artifact_id={{ accounting_aggregator_se_plugin_name }} version={{ accounting_aggregator_se_plugin_version | default(omit) }} group_id={{ accounting_aggregator_se_plugin_group_id }} extension={{ accounting_aggregator_se_plugin_extension | default('war') }} repository_url={{ smartgears_global_base_url }} classifier={{ accounting_aggregator_se_plugin_classifier }} dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/{{ accounting_aggregator_se_plugin_file }} + - name: Copy the accounting aggregator plugin to its final destination + copy: src={{ smartgears_downloads_dir }}/{{ accounting_aggregator_se_plugin_file }} dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/{{ accounting_aggregator_se_plugin_file }} remote_src=yes + when: (accounting_aggregator_download | changed) notify: Restart smartgears become: True