--- - name: Ping Windows hosts hosts: W2019 gather_facts: False tasks: - name: Ping Windows hosts using win_ping module ansible.windows.win_ping: