k3s-ansible/roles/node/templates/etc-systemd-network-20-lan0.network.j2

10 lines
222 B
Plaintext
Raw Normal View History

2024-11-23 21:46:13 +00:00
[Match]
Name={{ interface_name }}
[Network]
Address={{ ansible_default_ipv4.address|default(ansible_all_ipv4_addresses[0]) }}/24
Gateway={{ gateway }}
2024-12-23 14:53:44 +00:00
{% for nameserver in nameservers %}
DNS={{ nameserver }}
2024-11-23 21:46:13 +00:00
{% endfor %}