--- - hosts: all tasks: - name: Ping hosts ansible.builtin.ping: - hosts: all roles: - testrole