From 7296c70fc97f031ad325c8acba859f2a4c905fd5 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sat, 14 Oct 2023 11:39:04 +0200 Subject: [PATCH] Fix loop on volume ids. --- down.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/down.yml b/down.yml index 3a36429..e615229 100755 --- a/down.yml +++ b/down.yml @@ -38,9 +38,11 @@ register: output failed_when: output is failed and output.msg != "No Volume found for tmp_duplicity_workdir" with_items: - - output_tmp_duplicity_workdir_info + - "{{ output_tmp_duplicity_workdir_info.volumes }}" - name: remove tmp_duplicity_workdir volume openstack.cloud.volume: state: absent - name: tmp_duplicity_workdir + name: "{{ item.id }}" + with_items: + - "{{ output_tmp_duplicity_workdir_info.volumes }}"