mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-23 18:10:17 +08:00
15 lines
398 B
YAML
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}}
|