kubeasz/01.prepare.yml

18 lines
339 B
YAML
Raw Normal View History

# [optional] to synchronize system time of nodes with 'chrony'
2018-08-17 09:18:55 +08:00
- hosts: all
roles:
- { role: chrony, when: "groups['chrony']|length > 0" }
2018-08-17 09:18:55 +08:00
# to create CA, kubeconfig, kube-proxy.kubeconfig etc.
- hosts: localhost
2017-11-11 19:14:21 +08:00
roles:
- deploy
2017-11-11 19:14:21 +08:00
# prepare tasks for all nodes
- hosts:
2018-03-02 08:40:29 +08:00
- kube-master
- kube-node
- etcd
2017-11-11 19:14:21 +08:00
roles:
- prepare