forked from sportsru/ansible-netplan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
93 lines (87 loc) · 2.35 KB
/
main.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
# defaults file for ansible-netplan
netplan_config_file: /etc/netplan/config.yaml
netplan_renderer: networkd
# Either networkd or NetworkManager
netplan_configuration: {}
# network:
# version: 2
# renderer: networkd
#
# ethernets:
# enp0s3:
# dhcp4: true
# enp0s8:
# addresses:
# - 192.168.250.10/24
# # - 192.168.250.11/24
# nameservers:
# addresses:
# - 10.0.2.3
# - 8.8.8.8
# # - 8.8.4.4
# search:
# # Custom variable
# - "{{ netplan_pri_domain }}"
# # gateway4: 192.168.250.1
# # optional: true
# # routes:
# # - to: 0.0.0.0/0
# # via: 9.9.9.9
# # on-link: true
# # - to: 192.168.5.0/24
# # via: 192.168.5.1
# # table: 102
# # routing-policy:
# # - from: 192.168.5.0/24
# # table: 102
#
# # lo:
# # match:
# # name: lo
# # addresses: [ 7.7.7.7/32 ]
#
# # wifis:
# # wlp2s0b1:
# # dhcp4: no
# # dhcp6: no
# # addresses: [192.168.0.21/24]
# # gateway4: 192.168.0.1
# # access-points:
# # "network_ssid_name":
# # password: "**********"
#
# # bonds:
# # bond0:
# # dhcp4: yes
# # interfaces:
# # - enp0s3
# # - enp4s0
# # parameters:
# # # modes can be one of balance-rr, active-backup, balance-xor, broadcast,
# # # 802.3ad, balance-tlb, and balance-alb.
# # mode: active-backup
# # primary: enp0s3
#
# # bridges:
# # br0:
# # dhcp4: yes
# # interfaces:
# # - enp0s3
# # br0:
# # addresses: [ 10.3.99.25/24 ]
# # interfaces: [ vlan15 ]
#
# # vlans:
# # vlan15:
# # accept-ra: no
# # id: 15
# # link: enp0s25
netplan_remove_existing: true
netplan_enabled: true
# switch to enable/disable the role completely
netplan_apply: true
# disable direct apply and just generate / apply on next boot
netplan_packages:
- 'nplan'
- 'netplan.io'