Is this still with some issues?

I wanted to keep the src directory the "system of record" if you will...so 
that if I add / delete files from the ansible server i'm executing the 
playbook on, it will happen on the destination machine.
I know I could use command: rsync or shell: rsync or whatever, but 
according to the ansible module page, it seems like synchronize should at 
least handle this:



>
> *  3 - name: copy install pagages to server  4   synchronize: 
> src=etc/server1/scripts/ dest=/etc/server1/scripts/*


I'm using this with roles, and from the error, it seems like it does not 
follow the same logic other things do with roles:


> *msg: rsync: change_dir 
> "/home/brian/Documents/scripts/ansible//etc/server1/scripts" failed: No 
> such file or directory (2)*


seems like it doesn't go into the "files" folder of the role it's executing 
from, even though the ansible module speaks to relative paths.

Thoughts?

(From the ansible module website)

*# Synchronization of src on the control machine to dest on the remote hosts
> synchronize: src=some/relative/path dest=/some/absolute/path*
>
>





On Wednesday, December 11, 2013 2:08:35 PM UTC-5, Brian Coca wrote:
>
> Before the copy module supported it, you could do recursive copy, but it 
> required multiple tasks.You could also use ansible pull and have an 
> 'agent', which simplifies it enormously.
>
> I know many tools offer recursive copy, but doing it right with 
> permissions, sudo/su and multiple hosts is much harder than most realize. 
> The current copy and syncronize modules go a long way, but don't handle 
> every possible case (and probably will never do), I haven't found any tool 
> that does so.
>  

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to