Re: [ansible-project] Updating of files in /etc

48 views
Skip to first unread message

Michael DeHaan

unread,
Oct 20, 2014, 5:05:16 PM10/20/14
to ansible...@googlegroups.com
I would start by looking at what user you are running Ansible as, it sounds like you need to specify sudo.



On Fri, Oct 17, 2014 at 3:41 PM, Joseph Jenkins <josephm...@gmail.com> wrote:
I am trying to keep the hosts file synchronized on several ubuntu hosts and getting:

failed: [172.16.1.100] => {"failed": true, "item": "", "md5sum": "cda722545bb95ca3925348b3adbe42f3"}

msg: Destination /etc not writable

I have tried using the copy module and the synchronize module and running into the same issue.  I can get the rsync command to work if I use the --inplace option.  Is there a way to change the default behaviour of how Ansible runs rsync?  It is using it with the delayed updates:

cmd": "rsync --delay-updates -FF

Can I turn that off or change it?

--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7467fe16-f5cd-46e4-b738-c69d0c03b190%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael DeHaan

unread,
Oct 20, 2014, 5:05:44 PM10/20/14
to ansible...@googlegroups.com
Also I think I replied already to this, but there's no way to override rsync flags at this time for synchronize modules.

This could possibly be a parameter or we might just change the default, depending.


Reply all
Reply to author
Forward
0 new messages