-
Notifications
You must be signed in to change notification settings - Fork 37
/
playbook.yml
84 lines (84 loc) · 2.05 KB
/
playbook.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
---
- hosts: test-nodes
vars:
config_network_bonds: true
config_network_bridges: true
config_network_interfaces: true
enable_configured_interfaces_after_defining: true
network_bonds:
- name: bond0
address: 192.168.1.10
netmask: 255.255.255.0
configure: true
enable: false
comment: Bond Group 0
method: static
parameters:
- param: bond_mode
val: active-backup
- param: bond_miimon
val: 100
# - param: miimon
# val: 100
# - param: mode
# val: active-backup
- param: primary
val: enp0s9
slaves:
- enp0s9
- enp0s10
network_bridges:
- name: br0
configure: true
enable: false
comment: Bridge 0
method: static
address: 192.168.1.11
netmask: 255.255.255.0
netmask_cidr: 24
# gateway: 192.168.1.1
parameters:
- param: bridge_stp
val: off
- param: bridge_fd
val: 0
# - param: up route add default gw
# val: 10.0.106.1
ports:
- enp0s16
network_interfaces:
- name: enp0s3
configure: true
enable: false
method: dhcp
parameters:
- param: pre-up sleep
val: 2
- name: enp0s8
configure: true
method: static
address: 192.168.250.10
netmask: 255.255.255.0
- name: enp0s9
configure: true
comment: bond0 member
method: manual
parameters:
- param: bond_master
val: bond0
- name: enp0s10
configure: true
comment: bond0 member
method: manual
parameters:
- param: bond_master
val: bond0
- name: enp0s16
configure: true
comment: br0 member
method: manual
pri_domain_name: test.vagrant.local
roles:
- role: ansible-openvswitch
- role: ansible-config-interfaces
tasks: