OK - issue resolved.... was targeting wrong server in inventory file!

On Friday, May 18, 2018 at 12:05:15 PM UTC+12, java_cat33 wrote:
>
> The play copies a powershell script and runs it on the target - the script 
> looks up files in C:\Temp. This path definitely exists.
>
> I can run this play without issues against other test servers - now that I 
> want to run this play on the actual server I want to configure I get the 
> below error.....
>
> fatal: [servername]: FAILED! => {"changed": true, "msg": "non-zero return 
> code", "rc": 1, "stderr": "Get-ChildItem : Cannot find path 'C:\\Temp' 
> because it does not exist.\r\nAt C:\\Users\...........
>
> Running the same Powershell script locally on the target server returns a 
> json file - no errors thrown.
>
> WinRM config etc is all ok.
>
> Let me know if you need more info...
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e0ef7525-2375-4e4e-bee9-98a5350f7ad5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to