diff --git a/smartgears/smartgears/tasks/smartgears-app.yml b/smartgears/smartgears/tasks/smartgears-app.yml index 6e3ab121..21bbd96b 100644 --- a/smartgears/smartgears/tasks/smartgears-app.yml +++ b/smartgears/smartgears/tasks/smartgears-app.yml @@ -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