I think this will work but I'd have to know how to specify the destination 
location (my Mac laptop) in a way
that makes sense to Powershell Remoting. I have no clue how to do that.  

The very last answer to this stackoverflow demonstrates the methodology. 
Any Windows/PS pros in the house?

http://stackoverflow.com/questions/9304953/copy-files-from-remote-rdp-to-local-machine

J

On Wednesday, February 17, 2016 at 11:35:14 PM UTC-6, Gerald Spencer wrote:
>
> 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/353fe60d-0af3-4276-816c-8857078cd4c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to