mirror of https://github.com/easzlab/kubeasz.git
替换playbook中hosts: all
parent
bd67b298ac
commit
a4215438fe
|
@ -1,5 +1,10 @@
|
|||
# [optional] to synchronize system time of nodes with 'chrony'
|
||||
- hosts: all
|
||||
- hosts:
|
||||
- kube-master
|
||||
- kube-node
|
||||
- etcd
|
||||
- ex-lb
|
||||
- chrony
|
||||
roles:
|
||||
- { role: chrony, when: "groups['chrony']|length > 0" }
|
||||
|
||||
|
|
|
@ -23,7 +23,10 @@
|
|||
- deploy
|
||||
|
||||
# pre-tasks on all nodes
|
||||
- hosts: all
|
||||
- hosts:
|
||||
- kube-master
|
||||
- kube-node
|
||||
- etcd
|
||||
roles:
|
||||
- prepare
|
||||
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# [optional] to synchronize time of nodes with 'chrony'
|
||||
- hosts: all
|
||||
- hosts:
|
||||
- kube-master
|
||||
- kube-node
|
||||
- etcd
|
||||
- ex-lb
|
||||
- chrony
|
||||
roles:
|
||||
- { role: chrony, when: "groups['chrony']|length > 0" }
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
- hosts: all
|
||||
- hosts:
|
||||
- kube-master
|
||||
- kube-node
|
||||
- etcd
|
||||
- ex-lb
|
||||
- chrony
|
||||
roles:
|
||||
- { role: chrony, when: "groups['chrony']|length > 0" }
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# [可选]操作系统安全加固 https://github.com/dev-sec/ansible-os-hardening
|
||||
- hosts: all
|
||||
- hosts:
|
||||
- kube-master
|
||||
- kube-node
|
||||
- etcd
|
||||
- ex-lb
|
||||
- chrony
|
||||
vars:
|
||||
os_security_users_allow: change_user
|
||||
os_auth_pam_passwdqc_enable: false
|
||||
|
|
Loading…
Reference in New Issue