mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-30 08:50:55 +08:00
Replaces references to shell: with ansible.builtin.shell Signed-off-by: Ryan Lerch <rlerch@redhat.com>
16 lines
566 B
YAML
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}}
|