Files
fedora-infra_ansible/roles/openshift/object-delete/tasks/main.yml
2024-11-28 17:31:45 +10:00

16 lines
406 B
YAML

---
- name: Delete object file ({{tmpfile.path}})
file:
path=/etc/openshift_apps/{{app}}/{{objectname}}.yml
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}}