I tried the following playbook:

--- 
- hosts: windows
  tasks:
     - name: copy file
       fetch: src=\path\to\file\on\windows\machine 
dest=/destination/directory

But, somehow it failed. Am I doing it the wrong way?

On Monday, April 25, 2016 at 8:24:58 PM UTC+5:30, J Hawkesworth wrote:
>
> Fetch can also fetch from windows machines back to your ansible controller 
> machine.
>
> If you are fetching from > 1 windows box don't forget to fetch to a 
> directory, or use something like {{ inventory_hostname_short }} when 
> generating the file name.
>
> Hope this helps,
>
> Jon
>
>
> On Monday, April 25, 2016 at 3:06:04 PM UTC+1, Mick st john wrote:
>>
>> I trying to copy files from a remote windows machine to my local 
>> machine(linux machine) using ansible. As fetch module works for linux to 
>> linux file transfer, is there anything similar that could enable me to 
>> fetch files from windows machine to linux machine?
>>
>

-- 
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/9ba7a339-d176-4707-81ba-1eb4d8d3b4ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to