--- - hosts: VDA-R7Y95 tasks: - name: Run basic PowerShell script ansible.windows.win_powershell: script: | echo "Hello World" write-output "Hiya, AWx" | Out-File c:\temp\my-first-awx.txt