Fix loop on volume ids.
This commit is contained in:
parent
cba1481592
commit
7296c70fc9
6
down.yml
6
down.yml
@ -38,9 +38,11 @@
|
|||||||
register: output
|
register: output
|
||||||
failed_when: output is failed and output.msg != "No Volume found for tmp_duplicity_workdir"
|
failed_when: output is failed and output.msg != "No Volume found for tmp_duplicity_workdir"
|
||||||
with_items:
|
with_items:
|
||||||
- output_tmp_duplicity_workdir_info
|
- "{{ output_tmp_duplicity_workdir_info.volumes }}"
|
||||||
|
|
||||||
- name: remove tmp_duplicity_workdir volume
|
- name: remove tmp_duplicity_workdir volume
|
||||||
openstack.cloud.volume:
|
openstack.cloud.volume:
|
||||||
state: absent
|
state: absent
|
||||||
name: tmp_duplicity_workdir
|
name: "{{ item.id }}"
|
||||||
|
with_items:
|
||||||
|
- "{{ output_tmp_duplicity_workdir_info.volumes }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user