use random mac address if it's not provided
This commit is contained in:
parent
7f33b7792a
commit
05f2b28c4f
1 changed files with 6 additions and 2 deletions
|
@ -14,8 +14,12 @@
|
|||
{% endfor %}
|
||||
{% endif %}
|
||||
virt_install_network: >-
|
||||
{% for vlan, mac in interfaces %}
|
||||
--network bridge=br{{ vlan }},mac={{ mac }},model=virtio
|
||||
{% for item in interfaces %}
|
||||
{% 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 %}
|
||||
|
||||
tasks:
|
||||
|
|
Loading…
Add table
Reference in a new issue