--- - name: Ping Windows hosts hosts: W2022 tasks: - name: Ping Windows hosts using win_ping module win_ping: