ansible/roles/systemd_networkd/templates/network.j2

18 lines
394 B
Django/Jinja

{{ ansible_managed | comment }}
[Match]
Name={{ item.key }}
[Network]
LinkLocalAddressing={{ item.value.link_local | default(true)
| ternary("yes", "no") }}
IPForward={{ item.value.forward | default(false)
| ternary("yes", "no") }}
{% for addr in item.value.ip_addrs | default([]) %}
[Address]
Address={{ addr }}
{% endfor %}
[FairQueueingControlledDelay]
Parent=root