use random mac address if it's not provided

This commit is contained in:
Timo Makinen 2019-05-31 18:30:36 +03:00
parent 7f33b7792a
commit 05f2b28c4f

View file

@ -14,8 +14,12 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
virt_install_network: >- virt_install_network: >-
{% for vlan, mac in interfaces %} {% for item in interfaces %}
--network bridge=br{{ vlan }},mac={{ mac }},model=virtio {% if item[1] is defined %}
--network bridge=br{{ item[0] }},mac={{ item[1] }},model=virtio
{% else %}
--network bridge=br{{ item[0] }},model=virtio
{% endif %}
{% endfor %} {% endfor %}
tasks: tasks: