Im trying to find out if it is possible to copy a folder (with sub folders) 
from one Windows server on the network to all Windows servers in the 
playbook?



On Wednesday, February 10, 2016 at 12:24:13 PM UTC, Mark Matthews wrote:
>
> Hi
>
>  
>
> I am getting errors when trying to do a win_copy from a remote server to 
> destinations servers.
>
>  
>
> The playbook is the following:
>
>  
>
> ---
>
> - name: Copy Website Live Template from server
>
>   hosts: all
>
>   tasks:
>
>     - name: Copy Website Live Template from server
>
>       win_copy:
>
>         src: \\10.10.3.169\template\Live\
>
>         dest: C:\Websites
>
>  
>
> The error is:
> fatal: [10.10.3.170]: FAILED! => {"changed": false, "failed": true, 
> "invocation": {"module_args": {"dest": "C:/Websites", "src": "/
> 10.10.3.169/template/Live/"}, "module_name": "win_copy"}, "msg": "could 
> not find src=/10.10.3.169/template/Live"}
>
>  
>
> I have tried all kinds of variations in the playbook…
>
>  
>
>         src: \10.10.3.169\template\Live
>
>         dest: C:\Websites
>
>  
>
>         src: /10.10.3.169/template/Live/
>
>         dest: C:/Websites
>
>  
>
> But keep getting errors.
>
>  
>
> Any idea what could be the cause of this?
>
>  
>
>  
>
> Cheers
>

-- 
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/135a9107-f60a-4005-9158-0f98cfdb4fc3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to