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 <weberja...@gmail.com> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgz%2BR6r47zK6i-DXHHb2DY2Kon7v5t0A1SyHtmybe01WLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to