2016-06-13 16:24:30 +02:00
|
|
|
---
|
2017-10-11 17:20:04 +02:00
|
|
|
- block:
|
|
|
|
- name: Remove the smart generic worker plugin
|
|
|
|
shell: rm -f {{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/{{ smart_generic_worker_plugin_name }}-*-jar-with-dependencies.jar
|
|
|
|
notify: Restart smartgears
|
|
|
|
|
|
|
|
become: True
|
|
|
|
become_user: '{{ smartgears_user }}'
|
|
|
|
when: not generic_worker_install
|
|
|
|
tags: [ 'smartgears', 'generic_worker', 'tomcat' ]
|
|
|
|
|
|
|
|
- block:
|
|
|
|
- name: Get the smart generic worker plugin and install it inside the smart executor
|
|
|
|
maven_artifact: artifact_id={{ smart_generic_worker_plugin_name }} version={{ smart_generic_worker_plugin_version | default('latest') }} group_id={{ smart_generic_worker_plugin_group_id }} extension={{ smart_generic_worker_plugin_extension | default('war') }} repository_url={{ smartgears_global_base_url }} classifier={{ smart_generic_worker_plugin_classifier }} dest={{ smartgears_downloads_dir }}/{{ smart_generic_worker_plugin_file }}
|
2017-10-11 18:01:59 +02:00
|
|
|
register: generic_worker_download
|
2017-10-11 17:20:04 +02:00
|
|
|
|
|
|
|
- name: Remove the old accounting aggregator plugin
|
|
|
|
shell: rm -f {{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/{{ smart_generic_worker_plugin_name }}-*-jar-with-dependencies.jar
|
2017-10-11 18:01:59 +02:00
|
|
|
when: (generic_worker_download | changed)
|
2017-10-11 17:20:04 +02:00
|
|
|
|
|
|
|
- name: Copy the accounting aggregator plugin to its final destination
|
|
|
|
copy: src={{ smartgears_downloads_dir }}/{{ smart_generic_worker_plugin_file }} dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/{{ smart_generic_worker_plugin_file }} remote_src=yes force=yes
|
|
|
|
notify: Restart smartgears
|
|
|
|
|
2016-06-13 16:24:30 +02:00
|
|
|
become: True
|
|
|
|
become_user: '{{ smartgears_user }}'
|
|
|
|
when: generic_worker_install
|
|
|
|
tags: [ 'smartgears', 'generic_worker', 'tomcat' ]
|
|
|
|
|
2017-10-11 17:20:04 +02:00
|
|
|
|