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