-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnetplan.yml
52 lines (46 loc) · 1.15 KB
/
netplan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
- hosts: homelab
any_errors_fatal: true
roles:
-
role: mrlesmithjr.netplan
netplan_config_file: /etc/netplan/ens3f0.yaml
netplan_renderer: networkd
netplan_configuration:
network:
version: 2
ethernets:
ens3f0:
dhcp4: false
dhcp6: false
link-local:
- ipv4
vlans:
ens3f0.10:
addresses:
- "{{ networks.mgmt.prefix }}.3/24"
routes:
- to: default
via: "{{ networks.mgmt.prefix }}.1"
id: 10
link: ens3f0
link-local:
- ipv4
nameservers:
addresses:
- "{{ networks.mgmt.dns }}"
ens3f0.20:
id: 20
link: ens3f0
link-local:
- ipv4
ens3f0.30:
id: 30
link: ens3f0
link-local:
- ipv4
ens3f0.40:
id: 40
link: ens3f0
link-local:
- ipv4