openshift object-delete: add .yml to the object file to be deleted

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2020-03-04 09:21:14 +01:00 committed by Pierre-Yves Chibon
parent 5296b019cb
commit e1538d32e4

View file

@ -1,6 +1,6 @@
- name: Delete object file ({{tmpfile.path}})
file:
path=/etc/openshift_apps/{{app}}/{{objectname}}
path=/etc/openshift_apps/{{app}}/{{objectname}}.yml
state=absent
when: objecttype != 'project'