Hi Michael. My user does have permission to write the file -- he just doesn't have permission to create files in the parent directory, and Ansible is complaining about that.
When the "template" task updates an existing file, does it delete and re-create the file? JW On Friday, April 25, 2014 1:56:13 PM UTC-7, Michael DeHaan wrote: > > The template module will need permissions to be able to write the > template, however the template module is smart enough to not replace the > file if the md5sum of the template has not changed. > > IIRC, in some cases of sudo usage from non-root an md5sum isn't possible > and it will need to try to overwrite it each time > > > > On Fri, Apr 25, 2014 at 2:32 PM, Jacob Weber <[email protected]<javascript:> > > wrote: > >> I'm using the "template" task to modify a file that I own, and have write >> permissions on. I'm not using sudo; I'm just running it as my own user. >> >> But I get an error "Destination [parent-dir] not writable." I'm guessing >> it's deleting and re-creating the file. Is there any way to avoid this, or >> do I need to give my user write permission on the parent directory? >> >> JW >> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/50210aa7-c8be-4a01-aa72-27e845eec13a%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/50210aa7-c8be-4a01-aa72-27e845eec13a%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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/48222258-4ec0-4ddd-b1c7-cdd074a12500%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
