From 6bdf19df35c80fccf75ffd09ecca58d6987d1e0f Mon Sep 17 00:00:00 2001 From: Marcus Klein Date: Thu, 8 Dec 2022 11:12:34 +0100 Subject: [PATCH] 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 --- tasks/ceph_auth_extra_compute.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/ceph_auth_extra_compute.yml b/tasks/ceph_auth_extra_compute.yml index 7b67bc1..cfc0970 100644 --- a/tasks/ceph_auth_extra_compute.yml +++ b/tasks/ceph_auth_extra_compute.yml @@ -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