Line 85
<https://github.com/ansible/ansible-modules-core/blob/8d126bd877444c9557b1671521516447cc557d3f/windows/win_copy.ps1#L85>
in the win_copy module is the chunk that actually copies the file from the
local to remote. Perhaps try executing a raw command to test it out?
Something along the lines of:
- name: copy to local from remote
raw: Copy-Item -Path {{remoteFileLocation}} -Destination
{{localFileLocation}} -Force
Can't test this currently, but can do in the morning.
On Wednesday, February 17, 2016 at 8:16:34 PM UTC-8, Slim Slam wrote:
>
> In Ansible 2.0, the win_copy module will move a local file to a remote
> windows machine.
>
> Is there an Ansible way to fetch a remote file on a windows server and
> move it to a local machine?
>
> J
>
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/9227ea4a-9b53-49c8-8e11-037e7f5b7a3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.