Skip to content

Commit 77d9aae

Browse files
committed
volume creation script is needed only with volume type
1 parent d6e2cfb commit 77d9aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/volumes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{% endif %}
2828
-a {{ ansible_check_mode }}
2929
with_items: "{{ volumes }}"
30-
when: item.type | default(libvirt_volume_default_type) in ['volume', 'network']
30+
when: item.type | default(libvirt_volume_default_type) == 'volume'
3131
environment: "{{ libvirt_vm_script_env }}"
3232
register: volume_result
3333
changed_when:

0 commit comments

Comments
 (0)