2017-03-08 14:47:38 +01:00
|
|
|
---
|
|
|
|
- block:
|
|
|
|
- name: Remove the old social-networking-library-ws files
|
2017-09-14 17:05:14 +02:00
|
|
|
file: path={{ item }} state=absent
|
|
|
|
with_items:
|
|
|
|
- '{{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }}'
|
|
|
|
- '{{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }}.{{ social_networking_library_ws_extension }}'
|
2017-11-24 17:11:24 +01:00
|
|
|
notify: Restart smartgears
|
2017-03-08 14:47:38 +01:00
|
|
|
|
|
|
|
become: True
|
|
|
|
become_user: '{{ d4science_user }}'
|
2017-09-14 17:05:14 +02:00
|
|
|
when: not social_networking_library_ws_install
|
2017-03-08 14:47:38 +01:00
|
|
|
tags: [ 'smartgears', 'social_networking_library_ws', 'tomcat' ]
|
|
|
|
|
|
|
|
- block:
|
|
|
|
- name: Get the social-networking-library-ws war
|
2018-10-29 18:13:56 +01:00
|
|
|
maven_artifact: artifact_id={{ social_networking_library_ws_name }} version={{ social_networking_library_ws_version | default(omit) }} group_id={{ social_networking_library_ws_group_id }} extension={{ social_networking_library_ws_extension | default('war') }} repository_url={{ smartgears_global_base_url }} dest={{ smartgears_downloads_dir }}/{{ social_networking_library_ws_file }} verify_checksum=always
|
2017-11-24 17:11:24 +01:00
|
|
|
register: social_networking_library_ws_download
|
|
|
|
|
|
|
|
- name: Remove the old social-networking-library-ws files when upgrading
|
|
|
|
file: path={{ item }} state=absent
|
|
|
|
with_items:
|
|
|
|
- '{{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }}'
|
|
|
|
- '{{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }}.{{ social_networking_library_ws_extension }}'
|
2018-08-09 18:48:09 +02:00
|
|
|
when: social_networking_library_ws_download is changed
|
2017-11-24 17:11:24 +01:00
|
|
|
notify: Restart smartgears
|
2017-03-08 14:47:38 +01:00
|
|
|
|
2017-09-14 17:05:14 +02:00
|
|
|
- name: Copy the social_networking_library_ws war into the tomcat webapps dir
|
|
|
|
copy: src={{ smartgears_downloads_dir }}/{{ social_networking_library_ws_file }} dest={{ smartgears_instance_path }}/webapps/{{ social_networking_library_ws_name }}.{{ social_networking_library_ws_extension }} remote_src=yes force=yes
|
2017-03-08 14:47:38 +01:00
|
|
|
notify: Restart smartgears
|
|
|
|
|
|
|
|
become: True
|
|
|
|
become_user: '{{ d4science_user }}'
|
|
|
|
when: social_networking_library_ws_install
|
|
|
|
tags: [ 'smartgears', 'social_networking_library_ws', 'tomcat' ]
|