accounting_aggregator: Fix the deinstall scenario.

This commit is contained in:
Andrea Dell'Amico 2017-09-25 16:53:12 +02:00
parent fbca3de150
commit 1d8c5b11fe
1 changed files with 1 additions and 1 deletions

View File

@ -2,6 +2,7 @@
- block: - block:
- name: Remove the old accounting aggregator plugin - 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 shell: rm -f {{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/accounting-aggregator-se-plugin-*-jar-with-dependencies.jar
notify: Restart smartgears
become: True become: True
become_user: '{{ smartgears_user }}' become_user: '{{ smartgears_user }}'
@ -16,7 +17,6 @@
- name: Remove the old accounting aggregator plugin - 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 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) when: (accounting_aggregator_download | changed)
tags: [ 'smartgears', 'accounting_aggregator_se', 'tomcat' ]
- name: Copy the accounting aggregator plugin to its final destination - 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 force=yes 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 force=yes