forked from ISTI-ansible-roles/ansible-roles
added new tasks
This commit is contained in:
parent
0ef94ec1f6
commit
48ca38c5c5
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
- block:
|
||||
- name: Remove the old gis_viewer files
|
||||
file: path={{ item }} state=absent
|
||||
with_items:
|
||||
- '{{ smartgears_instance_path }}/webapps/{{ gis_viewer_name }}'
|
||||
- '{{ smartgears_instance_path }}/webapps/{{ gis_viewer_name }}.{{ gis_viewer_extension }}'
|
||||
|
||||
become: True
|
||||
become_user: '{{ d4science_user }}'
|
||||
when: not gis_viewer_install
|
||||
tags: [ 'smartgears', 'gis_viewer', 'tomcat' ]
|
||||
|
||||
- block:
|
||||
- name: Get the gis_viewer-service
|
||||
maven_artifact: artifact_id={{ gis_viewer_name }} version={{ gis_viewer_version | default('latest') }} group_id={{ gis_viewer_group_id }} extension={{ gis_viewer_extension | default('war') }} repository_url={{ smartgears_global_base_url }} dest={{ smartgears_downloads_dir }}/{{ gis_viewer_file }} verify_checksum=always
|
||||
register: gis_viewer_download
|
||||
|
||||
- name: Remove the old gis_viewer files
|
||||
file: path={{ smartgears_instance_path }}/webapps/{{ gis_viewer_name }} state=absent
|
||||
when: gis_viewer_download is changed
|
||||
|
||||
- name: Copy the gis_viewer service war file into the webapps directory
|
||||
copy: src={{ smartgears_downloads_dir }}/{{ gis_viewer_file }} dest={{ smartgears_instance_path }}/webapps/{{ gis_viewer_name }}.{{ gis_viewer_extension }} remote_src=yes force=yes
|
||||
notify: Restart smartgears
|
||||
|
||||
become: True
|
||||
become_user: '{{ d4science_user }}'
|
||||
when: gis_viewer_install
|
||||
tags: [ 'smartgears', 'gis_viewer', 'tomcat' ]
|
||||
|
Loading…
Reference in New Issue