2016-09-16 16:42:12 +02:00
|
|
|
---
|
2017-09-14 18:40:17 +02:00
|
|
|
- block:
|
2018-02-14 16:37:56 +01:00
|
|
|
- name: Remove the accounting_aggregator smart executor plugin
|
|
|
|
file: dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/plugins/{{ accounting_aggregator_se_plugin_name }} state=absent
|
2017-09-25 16:53:12 +02:00
|
|
|
notify: Restart smartgears
|
2018-02-14 16:37:56 +01:00
|
|
|
|
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' ]
|
|
|
|
|
2018-02-14 16:37:56 +01:00
|
|
|
|
2017-09-12 16:51:59 +02:00
|
|
|
- block:
|
2018-02-14 16:37:56 +01:00
|
|
|
- name: Download the accounting_aggregator plugin uber jar
|
|
|
|
maven_artifact: artifact_id={{ accounting_aggregator_se_plugin_name }} version={{ accounting_aggregator_se_plugin_version | default('latest') }} group_id={{ accounting_aggregator_se_plugin_group_id }} extension={{ accounting_aggregator_se_plugin_extension }} repository_url={{ smartgears_global_base_url }} classifier={{ accounting_aggregator_se_plugin_classifier }} dest={{ smartgears_downloads_dir }}/{{ accounting_aggregator_se_plugin_uber_file }}
|
2017-09-13 18:24:31 +02:00
|
|
|
register: accounting_aggregator_download
|
|
|
|
|
2018-02-14 16:37:56 +01:00
|
|
|
- name: Remove the old accounting_aggregator smart executor plugin
|
|
|
|
file: dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/plugins/{{ accounting_aggregator_se_plugin_name }} state=absent
|
2018-08-09 18:48:09 +02:00
|
|
|
when: accounting_aggregator_download is changed
|
2018-02-14 16:37:56 +01:00
|
|
|
notify: Restart smartgears
|
2017-05-19 09:42:18 +02:00
|
|
|
|
2018-02-14 16:37:56 +01:00
|
|
|
- name: Create the plugin directory inside the smart executor
|
|
|
|
file: dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/plugins/{{ accounting_aggregator_se_plugin_name }} state=directory
|
|
|
|
register: accounting_aggregator_create_dir
|
|
|
|
|
|
|
|
- name: Unarchive the accounting_aggregator uber jar to expose its libraries
|
|
|
|
unarchive: src={{ smartgears_downloads_dir }}/{{ accounting_aggregator_se_plugin_uber_file }} dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/plugins/{{ accounting_aggregator_se_plugin_name }}/ copy=no
|
2018-08-09 18:48:09 +02:00
|
|
|
when: accounting_aggregator_create_dir is changed
|
2017-09-12 16:51:59 +02:00
|
|
|
notify: Restart smartgears
|
2017-06-12 11:21:52 +02:00
|
|
|
|
2018-02-14 16:37:56 +01:00
|
|
|
- name: Download the accounting_aggregator plugin jar file
|
|
|
|
maven_artifact: artifact_id={{ accounting_aggregator_se_plugin_name }} version={{ accounting_aggregator_se_plugin_version }} group_id={{ accounting_aggregator_se_plugin_group_id }} extension={{ accounting_aggregator_se_plugin_extension }} repository_url={{ smartgears_global_base_url }} dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/plugins/{{ accounting_aggregator_se_plugin_name }} keep_name=yes
|
|
|
|
notify: Restart smartgears
|
|
|
|
|
2018-11-30 19:47:24 +01:00
|
|
|
- name: Remove the accounting_aggregator uber jar org and META-INF directories
|
2018-02-14 16:37:56 +01:00
|
|
|
file: dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/plugins/{{ accounting_aggregator_se_plugin_name }}/{{ item }} state=absent
|
|
|
|
with_items:
|
|
|
|
- org
|
|
|
|
- 'META-INF'
|
|
|
|
notify: Restart smartgears
|
|
|
|
|
|
|
|
- name: Install the nco package
|
|
|
|
become_user: root
|
|
|
|
apt: pkg=nco state=present update_cache=yes cache_valid_time=1800
|
|
|
|
|
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' ]
|