forked from ISTI-ansible-roles/ansible-roles
smartgears data-transfer: expand the war file, because we need to put stuff inside.
This commit is contained in:
parent
02bcd00968
commit
fc6688b26d
|
@ -131,6 +131,20 @@
|
||||||
notify: Restart smartgears
|
notify: Restart smartgears
|
||||||
tags: [ 'smartgears', 'smartgears_conf', 'tomcat' ]
|
tags: [ 'smartgears', 'smartgears_conf', 'tomcat' ]
|
||||||
|
|
||||||
|
- name: Create the data transfer webapp directory
|
||||||
|
become: True
|
||||||
|
become_user: '{{ smartgears_user }}'
|
||||||
|
file: path={{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }} state=directory
|
||||||
|
when: data_transfer_service_install
|
||||||
|
tags: [ 'smartgears', 'smartgears_data_trasfer', 'tomcat' ]
|
||||||
|
|
||||||
|
- name: Unarchive the data transfer webapp directory
|
||||||
|
become: True
|
||||||
|
become_user: '{{ smartgears_user }}'
|
||||||
|
unarchive: src={{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }}.war dest={{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }} creates={{ smartgears_instance_path }}/webapps/{{ data_trasfer_service_name }}/WEB-INF/gcube-app.xml remote_src=yes
|
||||||
|
when: data_transfer_service_install
|
||||||
|
tags: [ 'smartgears', 'smartgears_data_trasfer', 'tomcat' ]
|
||||||
|
|
||||||
- name: Force a smartgears restart
|
- name: Force a smartgears restart
|
||||||
service: name='tomcat-instance-{{ smartgears_http_port }}' state=restarted
|
service: name='tomcat-instance-{{ smartgears_http_port }}' state=restarted
|
||||||
when: smartgears_force_restart is defined and smartgears_force_restart
|
when: smartgears_force_restart is defined and smartgears_force_restart
|
||||||
|
|
Loading…
Reference in New Issue