mirror of https://github.com/easzlab/kubeasz.git
18 lines
339 B
YAML
18 lines
339 B
YAML
# [optional] to synchronize system time of nodes with 'chrony'
|
|
- hosts: all
|
|
roles:
|
|
- { role: chrony, when: "groups['chrony']|length > 0" }
|
|
|
|
# to create CA, kubeconfig, kube-proxy.kubeconfig etc.
|
|
- hosts: localhost
|
|
roles:
|
|
- deploy
|
|
|
|
# prepare tasks for all nodes
|
|
- hosts:
|
|
- kube-master
|
|
- kube-node
|
|
- etcd
|
|
roles:
|
|
- prepare
|