--- - name: Update ssh known host hosts: - all,!localhost tags: - "ssh" gather_facts: no roles: - {role: known_hosts, tags: ["ssh"]} ...