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

10 lines
208 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 }}
{% for dns in dns_servers %}
DNS={{ dns }}
{% endfor %}