blob: 7a6ae9e468b8a140faeb5d04ee02ab94073fd726 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
{{ ansible_default_ipv4["interface"] }}:
addresses: [ {{ (ansible_default_ipv4.address + '/' + ansible_default_ipv4.netmask) | ipaddr('host/prefix') }} ]
dhcp4: false
gateway4: {{ ansible_default_ipv4["gateway"] }}
nameservers:
addresses: {{ name_servers }}
|