- hosts: all roles: - { role: chrony, when: "groups['chrony']|length > 0" }