Files
fedora-infra_ansible/roles/openshift/object-delete/tasks/main.yml
Ryan Lerch 3c41882bb0 ansiblelint fixes - fqcn[action-core] - shell to ansible.builtin.shell
Replaces references to shell: with ansible.builtin.shell

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:29:10 +10:00

16 lines
566 B
YAML

---
- name: Delete object file ({{tmpfile.path}})
ansible.builtin.file:
path=/etc/openshift_apps/{{object_delete_app}}/{{object_delete_objectname}}.yml
state=absent
when: object_delete_objecttype != 'project'
- name: Delete project files ({{tmpfile.path}})
ansible.builtin.file:
path=/etc/openshift_apps/{{object_delete_app}}
state=absent
when: object_delete_objecttype == 'project'
- name: Call `oc delete` on the object
ansible.builtin.shell: oc -n {{object_delete_app}} delete {{object_delete_objecttype}}/{{object_delete_objectname}}