summaryrefslogtreecommitdiffstats
path: root/templates/etc/systemd/network/01-wired.network.j2
blob: 7be5d21fd5c9531a3f97d49c78526a3445d04571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Match]
Name={{ ansible_default_ipv4.interface }}

[Network]
DHCP=yes

{% if ansible_default_ipv6.get('scope', '') == 'global' %}
[Address]
Address={{ ansible_default_ipv6.address }}/{{ ansible_default_ipv6.prefix }}

[Route]
Gateway={{ ansible_default_ipv6.gateway }}
{%- endif %}