Configure Netplan.
Variable | Type | Default |
---|---|---|
netplan | Dict | "" |
- hosts: servers
vars:
netplan:
network:
version: 2
ethernets:
eth1:
dhcp4: no
dhcp6: no
addresses:
- 192.168.1.14/24
nameservers:
addresses:
- 192.168.1.1
routes:
- to: default
via: 192.168.1.1
roles:
- netplan
MIT
kcir