Remove the gcube-app.xml or gcube-handlers.xml files when they are not needed.

This commit is contained in:
Andrea Dell'Amico 2018-10-16 17:34:59 +02:00
parent 08259dfbe2
commit 6c536c91ac
1 changed files with 14 additions and 0 deletions

View File

@ -13,3 +13,17 @@
when: gcubehandlers_setup
tags: [ 'smartgears', 'gcubeapp' ]
- name: Remove the gcube-app.xml file when it is not needed
file: dest={{ item.webapp_path | default('/home/gcube/tomcat') }}/webapps/{{ item.webapp_context }}/WEB-INF/gcube-app.xml owner={{ smartgears_user }} group={{ smartgears_user }} state=absent
with_items: '{{ gcubeapp_webapps | default([]) }}'
notify: Restart smartgears
when: not gcubeapp_setup
tags: [ 'smartgears', 'gcubeapp' ]
- name: Remove the gcube-handlers.xml file when it is not needed
file: dest={{ item.webapp_path | default('/home/gcube/tomcat') }}/webapps/{{ item.webapp_context }}/WEB-INF/gcube-handlers.xml owner={{ smartgears_user }} group={{ smartgears_user }} state=absent
with_items: '{{ gcubeapp_webapps | default([]) }}'
notify: Restart smartgears
when: not gcubehandlers_setup
tags: [ 'smartgears', 'gcubeapp' ]