2016-06-13 16:24:30 +02:00
|
|
|
---
|
2017-05-09 17:59:56 +02:00
|
|
|
- block:
|
|
|
|
- name: Remove the old is-sweeper plugin
|
2017-10-19 19:38:33 +02:00
|
|
|
shell: rm -f {{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/{{ is_sweeper_se_plugin_name }}-*-{{ is_sweeper_se_plugin_classifier }}.{{ is_sweeper_se_plugin_extension }}
|
|
|
|
notify: Restart smartgears
|
|
|
|
|
|
|
|
become: True
|
|
|
|
become_user: '{{ smartgears_user }}'
|
|
|
|
when: not is_sweeper_se_plugin_install
|
|
|
|
tags: [ 'smartgears', 'is_sweeper_se', 'tomcat' ]
|
|
|
|
|
|
|
|
- block:
|
|
|
|
- name: Download the is-sweeper plugin
|
|
|
|
maven_artifact: artifact_id={{ is_sweeper_se_plugin_name }} version={{ is_sweeper_se_plugin_version | default('latest') }} group_id={{ is_sweeper_se_plugin_group_id }} extension={{ is_sweeper_se_plugin_extension }} repository_url={{ smartgears_global_base_url }} classifier={{ is_sweeper_se_plugin_classifier }} dest={{ smartgears_downloads_dir }}/{{ is_sweeper_se_plugin_file }}
|
|
|
|
register: is_sweeper_plugin_download
|
|
|
|
|
|
|
|
- name: Remove the old is-sweeper plugin
|
|
|
|
shell: rm -f {{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/{{ is_sweeper_se_plugin_name }}-*-{{ is_sweeper_se_plugin_classifier }}.{{ is_sweeper_se_plugin_extension }}
|
2017-11-23 19:17:03 +01:00
|
|
|
when: ( is_sweeper_plugin_download | changed )
|
2017-10-19 19:38:33 +02:00
|
|
|
|
2017-05-09 17:59:56 +02:00
|
|
|
- name: Install the is-sweeper plugin inside the smart executor lib directory
|
2017-10-19 19:38:33 +02:00
|
|
|
copy: src={{ smartgears_downloads_dir }}/{{ is_sweeper_se_plugin_file }} dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/{{ is_sweeper_se_plugin_file }} remote_src=yes force=yes
|
2017-05-09 17:59:56 +02:00
|
|
|
notify: Restart smartgears
|
|
|
|
|
2016-06-13 16:24:30 +02:00
|
|
|
become: True
|
|
|
|
become_user: '{{ smartgears_user }}'
|
|
|
|
when: is_sweeper_se_plugin_install
|
|
|
|
tags: [ 'smartgears', 'is_sweeper_se', 'tomcat' ]
|
|
|
|
|