Ensure role not fail when secret_uuid is not part of ceph_extra_confs

Most tasks already check whether secret_uuid is defined but cleanup
tasks do this not and fail.

Change-Id: I31471907cafde83d73c8fa23bca377955523ec71
This commit is contained in:
Marcus Klein 2022-12-08 11:12:34 +01:00
parent edbd5268d3
commit 6bdf19df35
1 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,8 @@
path: "/tmp/{{ item.secret_uuid }}.libvirt_secret_exists"
state: "absent"
with_items: "{{ ceph_extra_confs }}"
when:
- item.secret_uuid is defined
tags:
- always
@ -140,6 +142,8 @@
path: "/tmp/{{ item.secret_uuid }}.libvirt_secret_value_exists"
state: "absent"
with_items: "{{ ceph_extra_confs }}"
when:
- item.secret_uuid is defined
tags:
- always