Skip to content

Commit 851e2a5

Browse files
authored
Add default for volume.device
1 parent 2fa07e3 commit 851e2a5

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
@@ -26,7 +26,7 @@
2626
-b {{ item.backing_image }}
2727
{% endif %}
2828
with_items: "{{ volumes }}"
29-
when: "{{ item.device == 'disk' }}"
29+
when: "{{ item.device | default(libvirt_volume_default_device) == 'disk' }}"
3030
environment: "{{ libvirt_vm_script_env }}"
3131
register: volume_result
3232
changed_when:

0 commit comments

Comments
 (0)