k3s-ansible/roles/node/templates/etc-systemd-network-20-lan0.network.j2
2024-12-23 15:53:44 +01:00

10 lines
222 B
Django/Jinja

[Match]
Name={{ interface_name }}
[Network]
Address={{ ansible_default_ipv4.address|default(ansible_all_ipv4_addresses[0]) }}/24
Gateway={{ gateway }}
{% for nameserver in nameservers %}
DNS={{ nameserver }}
{% endfor %}