Ansible role to install and configure netplan networking.
Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.
- Minimum Ansible version:
2.10
Definition of bond entries
netplan_bonds:
netplan_bonds:
bond0:
mode: balance-rr
interfaces:
- enp6s0
- enp6s1
Definition of bridge entries
netplan_bridges:
netplan_bridges:
virbr1:
dhcp4: True
dhcp4-overrides:
use-routes: False
interfaces:
- vlan905
Path to config written to
netplan_config_file: /etc/netplan/01-netcfg.yaml
Definition of ethernet entries
netplan_ethernets:
netplan_ethernets: |
enp6s0:
dhcp4: True
Renderer used by netplan
netplan_renderer: networkd
Define the available routing tables
netplan_rts: []
netplan_rts:
- id: 255
name: local
- id: 254
name: main
- id: 253
name: default
- id: 0
name: unspec
Version of the netplan config format
netplan_version: '2'
Definition of vlan entries
netplan_vlans:
netplan_vlans:
vlan905:
id: 905
dhcp4: True
link: enp6s0
netplan
- None
Apache-2.0