2016-09-16 16:42:12 +02:00
|
|
|
---
|
2017-09-14 18:40:17 +02:00
|
|
|
- block:
|
|
|
|
- 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
|
2017-09-25 16:53:12 +02:00
|
|
|
notify: Restart smartgears
|
2017-09-14 18:40:17 +02:00
|
|
|
|
|
|
|
become: True
|
|
|
|
become_user: '{{ smartgears_user }}'
|
|
|
|
when: not accounting_aggregator_se_plugin_install
|
|
|
|
tags: [ 'smartgears', 'accounting_aggregator_se', 'tomcat' ]
|
|
|
|
|
2017-09-12 16:51:59 +02:00
|
|
|
- block:
|
2017-09-13 18:24:31 +02:00
|
|
|
- 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
|
|
|
|
|
2017-09-12 16:51:59 +02:00
|
|
|
- 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
|
2017-09-13 18:24:31 +02:00
|
|
|
when: (accounting_aggregator_download | changed)
|
2017-05-19 09:42:18 +02:00
|
|
|
|
2017-09-13 18:24:31 +02:00
|
|
|
- name: Copy the accounting aggregator plugin to its final destination
|
2017-09-14 18:40:17 +02:00
|
|
|
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
|
2017-09-12 16:51:59 +02:00
|
|
|
notify: Restart smartgears
|
2017-06-12 11:21:52 +02:00
|
|
|
|
2016-09-16 16:42:12 +02:00
|
|
|
become: True
|
|
|
|
become_user: '{{ smartgears_user }}'
|
|
|
|
when: accounting_aggregator_se_plugin_install
|
|
|
|
tags: [ 'smartgears', 'accounting_aggregator_se', 'tomcat' ]
|
|
|
|
|