# [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