forked from ISTI-ansible-roles/ansible-roles
Remove the gcube-app.xml or gcube-handlers.xml files when they are not needed.
This commit is contained in:
parent
08259dfbe2
commit
6c536c91ac
|
@ -13,3 +13,17 @@
|
||||||
when: gcubehandlers_setup
|
when: gcubehandlers_setup
|
||||||
tags: [ 'smartgears', 'gcubeapp' ]
|
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' ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue