2016-12-12 17:28:01 +01:00
|
|
|
---
|
|
|
|
- block:
|
|
|
|
- name: Remove the old grsf-publisher-ws files
|
2017-10-11 18:40:14 +02:00
|
|
|
file: path={{ item }} state=absent
|
|
|
|
with_items:
|
|
|
|
- '{{ smartgears_instance_path }}/webapps/{{ grsf_publisher_ws_name }}'
|
|
|
|
- '{{ smartgears_instance_path }}/webapps/{{ grsf_publisher_ws_name }}.{{ grsf_publisher_ws_extension }}'
|
|
|
|
notify: Restart smartgears
|
|
|
|
|
|
|
|
become: True
|
|
|
|
become_user: '{{ d4science_user }}'
|
|
|
|
tags: [ 'smartgears', 'grsf_publisher_ws', 'tomcat' ]
|
|
|
|
when: not grsf_publisher_ws_install
|
2016-12-12 17:28:01 +01:00
|
|
|
|
2017-10-11 18:40:14 +02:00
|
|
|
- block:
|
|
|
|
- name: Get the grsf-publisher-ws war
|
2017-10-11 18:42:42 +02:00
|
|
|
maven_artifact: artifact_id={{ grsf_publisher_ws_name }} version={{ grsf_publisher_ws_version | default(omit) }} group_id={{ grsf_publisher_ws_group_id }} extension={{ grsf_publisher_ws_extension | default('war') }} repository_url={{ smartgears_global_base_url }} dest={{ smartgears_downloads_dir }}/{{ grsf_publisher_ws_file }}
|
2017-10-11 18:40:14 +02:00
|
|
|
register: grsf_publisher_download
|
|
|
|
|
|
|
|
- name: Remove the old grsf-publisher-ws files
|
|
|
|
file: path={{ smartgears_instance_path }}/webapps/{{ grsf_publisher_ws_name }} state=absent
|
|
|
|
notify: Restart smartgears
|
2018-08-09 18:48:09 +02:00
|
|
|
when: grsf_publisher_download is changed
|
2016-12-12 17:28:01 +01:00
|
|
|
|
2018-01-11 18:36:23 +01:00
|
|
|
- name: Copy the GRSF publisher under the webapps directory
|
|
|
|
copy: src={{ smartgears_downloads_dir }}/{{ grsf_publisher_ws_file }} dest={{ smartgears_instance_path }}/webapps/{{ grsf_publisher_ws_name }}.{{ grsf_publisher_ws_extension }} remote_src=yes force=yes
|
2016-12-12 17:28:01 +01:00
|
|
|
notify: Restart smartgears
|
|
|
|
|
|
|
|
become: True
|
|
|
|
become_user: '{{ d4science_user }}'
|
|
|
|
tags: [ 'smartgears', 'grsf_publisher_ws', 'tomcat' ]
|
|
|
|
when: grsf_publisher_ws_install
|