Re: [ansible-project] Ansible copy file module to Windows host fails

2015-01-27 Thread Jeffrey Liu
References: https://groups.google.com/forum/#!topic/ansible-devel/Jl5qP73CiKo Place this copy.ps1 to /usr/lib/python2.6/site-packages/ansible/modules/core/windows/copy.ps1 # https://gist.github.com/tkinz27/fd92ba9af0e0309614ee Tho it's probably not needed if you can use the win_url module or

Re: [ansible-project] Ansible copy file module to Windows host fails

2015-01-27 Thread Jaime Banda
Can you share your code that works an how did you did it? On Saturday, December 20, 2014 at 10:03:54 AM UTC-7, Jeffrey Liu wrote: > > 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 >

Re: [ansible-project] Ansible copy file module to Windows host fails

2014-12-20 Thread Jeffrey Liu
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 scr

Re: [ansible-project] Ansible copy file module to Windows host fails

2014-12-17 Thread Matt Martz
Ansible 1.8.x does not support the copy module for windows hosts. A win_copy module was just merged into devel (which will become 1.9): https://github.com/ansible/ansible-modules-core/pull/384 https://github.com/ansible/ansible/pull/9611 On Tuesday, December 16, 2014, Jeffrey Liu wrote: > Hi A

[ansible-project] Ansible copy file module to Windows host fails

2014-12-17 Thread Jeffrey Liu
Hi All, I'm running Ansible 1.8.2 on a CentOS 6.6 server. 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 fil