And another one…
I have a PowerShell script that I copy to a Windows host via the win_template module.
Then I go and use the raw module to execute that script:
-
name: Copy PowerShell script to remote host
win_template:
src: /container/ansible/roles/test/templates/download_s3_bucket.ps1.j2
dest: “c:\s3downloads\download_s3_bucket.ps1” -
name: Download Installer from S3 bucket
raw: “powershell.exe -ExecutionPolicy Bypass -File ‘c:\s3downloads\download_s3_bucket.ps1’”
The second task continuously fails, all the time, after about 60 seconds.
This is the output:
`