I may be missing the point here but is the fetch module what you need?  
Fetch works against windows hosts and linux hosts.

Plenty of examples in the integration tests here: 
https://github.com/ansible/ansible/blob/devel/test/integration/roles/test_win_fetch/tasks/main.yml

Hope this helps,

Jon


On Monday, 22 February 2016 02:49:55 UTC, Slim Slam wrote:
>
> Anyone know what the destination format would be in Powershell to target 
> the local desktop?
>
> J
>
> On Saturday, February 20, 2016 at 12:18:09 AM UTC-6, Slim Slam wrote:
>>
>> More relevant discussion:  
>> http://stackoverflow.com/questions/10741609/copy-file-remotely-with-powershell
>>
>> On Friday, February 19, 2016 at 1:51:00 PM UTC-6, Slim Slam wrote:
>>>
>>> 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/569b2b11-6986-4bf5-b9a2-b14563074ab4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to