10 lines
222 B
Django/Jinja
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 %}
|