Files
fedora-infra_ansible/roles/openshift/object-delete/tasks/main.yml
Dusty Mabe e4cfcb55e8 openshift: match on objecttype for project delete
This was a typo in 0acb753.
2020-04-24 21:34:08 +02:00

15 lines
398 B
YAML

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