forked from ISTI-ansible-roles/ansible-roles
accounting_aggregator: Fix the deinstall scenario.
This commit is contained in:
parent
fbca3de150
commit
1d8c5b11fe
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue