diff --git a/playbooks/include/deploy-kvm-guest.yml b/playbooks/include/deploy-kvm-guest.yml index db5c6c1..bc34ec8 100644 --- a/playbooks/include/deploy-kvm-guest.yml +++ b/playbooks/include/deploy-kvm-guest.yml @@ -35,9 +35,11 @@ {% endfor %} virt_install_passthrough: >- - {% for item in passthrough_devices %} + {% if passthrough_devices is defined %} + {% for item in passthrough_devices %} --hostdev {{ item }} - {% endfor %} + {% endfor %} + {% endif %} tasks: