I’m trying to copy a file to a windows host, but the copy module fails. The weird thing is that I do see that it does PUT the file over to the remote windows host, but it fails when it tries to execute the powershell to rename the file to the destination directory.
If I abort the command before it removes the temporary files I can confirm the remote “source” file is the actual file. It looks like the failure is on the remote end to rename the file. Any ideas if this can be fixed? It’s a rather important feature for me to be able to distribute powershell scripts for remote execution.
Thanks. I found out that win_copy has a pull request about to be merged into 1.9
I also found a resource for copy.ps1 which works – I don’t need all the bells and whistles and a rudimentary copy function is all that’s needed for now.
Although, for the purposes of just running a powershell script, the script module works well too.