1
0
IaC/ansible/playbooks/templates/ethernet.network.j2

20 lines
317 B
Plaintext
Raw Normal View History

2023-08-09 08:37:28 -04:00
[Match]
MACAddress={{ item.mac_address }}
[Link]
ARP={{ item.arp }}
[Network]
DHCP={{ item.dhcp | default(true) }}
{% if item.bond %}
Bond={{ item.bond }}
{% endif %}
{% if item.bridge %}
Bridge={{ item.bridge }}
{% endif %}
{% if item.vlans %}
{% for vlan in item.vlans %}
VLAN={{ vlan }}
{% endfor %}
{% endif %}