ansible/roles/systemd_networkd/templates/network.j2

19 lines
395 B
Text
Raw Normal View History

2022-01-02 16:30:59 +01:00
{{ ansible_managed | comment }}
[Match]
Name={{ item.key }}
[Network]
LinkLocalAddressing={{ item.value.link_local | default(true)
2022-01-03 01:57:51 +01:00
| ternary("ipv6", "no") }}
IPForward={{ item.value.forward | default(false)
| ternary("yes", "no") }}
2022-01-02 16:30:59 +01:00
{% for addr in item.value.ip_addrs | default([]) %}
[Address]
Address={{ addr }}
{% endfor %}
[FairQueueingControlledDelay]
Parent=root