diff --git a/molecule/netplan/converge.yml b/molecule/netplan/converge.yml index 78c15e94..89bedc12 100644 --- a/molecule/netplan/converge.yml +++ b/molecule/netplan/converge.yml @@ -10,7 +10,11 @@ netplan_ethernets: - interface_name: "eth0" dhcp4: "no" - gateway4: "10.123.0.1" + routes: + - to: "default" + via: "10.123.0.1" + - to: "172.16.0.0/24" + via: "10.123.0.100" addresses: - "10.123.0.10/24" nameservers: diff --git a/molecule/netplan/molecule.yml b/molecule/netplan/molecule.yml index ebab0dc4..a4d057b2 100644 --- a/molecule/netplan/molecule.yml +++ b/molecule/netplan/molecule.yml @@ -20,6 +20,8 @@ platforms: - "--network=netplan_network" provisioner: name: "ansible" + options: + D: true playbooks: prepare: "prepare.yml" converge: "converge.yml" diff --git a/roles/netplan/README.md b/roles/netplan/README.md index 6f64849a..15165712 100644 --- a/roles/netplan/README.md +++ b/roles/netplan/README.md @@ -145,7 +145,9 @@ None. netplan_ethernets: - interface_name: 'eth0' dhcp4: 'no' - gateway4: '10.123.0.1' + routes: + - to: 'default' + via: '10.123.0.1' addresses: - '10.123.0.10/24' nameservers: