openshift: handle deleting projects

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-08-22 19:10:28 +00:00 committed by Pierre-Yves Chibon
parent 2adedd60fa
commit 13dd31da04

View file

@ -2,6 +2,13 @@
file:
path=/etc/openshift_apps/{{app}}/{{objectname}}
state=absent
when: objectname != 'project'
- name: Delete project files ({{tmpfile.path}})
file:
path=/etc/openshift_apps/{{app}}
state=absent
when: objectname == 'project'
- name: Call `oc delete` on the object
shell: oc -n {{app}} delete {{objecttype}}/{{objectname}}