smartgears data-transfer: expand the war file, because we need to put stuff inside.

This commit is contained in:
Andrea Dell'Amico 2017-09-19 17:11:59 +02:00
parent 02bcd00968
commit fc6688b26d
1 changed files with 14 additions and 0 deletions

View File

@ -131,6 +131,20 @@
notify: Restart smartgears
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
service: name='tomcat-instance-{{ smartgears_http_port }}' state=restarted
when: smartgears_force_restart is defined and smartgears_force_restart