add support for netplan on ubuntu bionic
[noc.git] / ansible / roles / vm / network / templates / netplan.yaml.j2
1 # This file describes the network interfaces available on your system
2 # For more information, see netplan(5).
3 network:
4   version: 2
5   renderer: networkd
6   ethernets:
7     {{ network.primary.interface }}:
8       addresses: [ {{ (network.primary.ip + '/' + network.primary.mask) | ipaddr('address/prefix') }} ]
9       gateway4: {{ network.primary.gateway }}
10       accept-ra: false