- hosts: - kube_master - kube_node - etcd - ex_lb - chrony roles: - { role: chrony, when: "groups['chrony']|length > 0" }