File tree 5 files changed +28
-5
lines changed
5 files changed +28
-5
lines changed Original file line number Diff line number Diff line change 1
1
# [optional] to synchronize system time of nodes with 'chrony'
2
- - hosts : all
2
+ - hosts :
3
+ - kube-master
4
+ - kube-node
5
+ - etcd
6
+ - ex-lb
7
+ - chrony
3
8
roles :
4
9
- { role: chrony, when: "groups['chrony']|length > 0" }
5
10
Original file line number Diff line number Diff line change 23
23
- deploy
24
24
25
25
# pre-tasks on all nodes
26
- - hosts : all
26
+ - hosts :
27
+ - kube-master
28
+ - kube-node
29
+ - etcd
27
30
roles :
28
31
- prepare
29
32
Original file line number Diff line number Diff line change 1
1
# [optional] to synchronize time of nodes with 'chrony'
2
- - hosts : all
2
+ - hosts :
3
+ - kube-master
4
+ - kube-node
5
+ - etcd
6
+ - ex-lb
7
+ - chrony
3
8
roles :
4
9
- { role: chrony, when: "groups['chrony']|length > 0" }
5
10
Original file line number Diff line number Diff line change 1
- - hosts : all
1
+ - hosts :
2
+ - kube-master
3
+ - kube-node
4
+ - etcd
5
+ - ex-lb
6
+ - chrony
2
7
roles :
3
8
- { role: chrony, when: "groups['chrony']|length > 0" }
Original file line number Diff line number Diff line change 1
1
# [可选]操作系统安全加固 https://github.com/dev-sec/ansible-os-hardening
2
- - hosts : all
2
+ - hosts :
3
+ - kube-master
4
+ - kube-node
5
+ - etcd
6
+ - ex-lb
7
+ - chrony
3
8
vars :
4
9
os_security_users_allow : change_user
5
10
os_auth_pam_passwdqc_enable : false
You can’t perform that action at this time.
0 commit comments