Then it sounds like the existing error message does indicate the directory needs to be writeable which may be good enough, I'm not sure whether most people would know or should need to know what "atomic move" was.
On Tue, Jun 24, 2014 at 10:38 AM, Ben Hoyt <[email protected]> wrote: > Ah yes -- good point. For me the error message was the first point of > contact, and I was confused by it. It said: > > Destination /etc/nginx/conf.d not writable > > And my thought (till I looked at the Ansible source) was "why does the > directory need to be writable when I'm just copying the existing file > /etc/nginx/conf.d/upstream.conf?" Perhaps change the error message to > something like: > > Destination's parent directory %s not writable (must be writable for > atomic file move) > > -Ben > > > On Tue, Jun 24, 2014 at 10:30 AM, Michael DeHaan <[email protected]> > wrote: > >> Or perhaps improve the error message when it fails, yes. >> >> Agreed. >> >> >> On Tue, Jun 24, 2014 at 9:29 AM, Ben Hoyt <[email protected]> wrote: >> >>> >>> >>>> if the files were not there, ansible would need to create the file >>>> anyway, as is it's nature >>>> >>> >>> That's a fair point. If ansible is being used for end-to-end server >>> configuration (as is often the case) it will have to create the file anyway. >>> >>> However, one thing that could be improved here is the documentation -- >>> mention in the "template" (and "copy"?) module docs that write access on >>> the directory is required and why (due to the atomic temp file/rename >>> magic). >>> >>> -Ben >>> >>> -- >>> 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/CAL9jXCH5%2B9fgCQB24tRsPPyDoiEpBEiOcCoSKBAZTf09WSXQ8Q%40mail.gmail.com >>> <https://groups.google.com/d/msgid/ansible-project/CAL9jXCH5%2B9fgCQB24tRsPPyDoiEpBEiOcCoSKBAZTf09WSXQ8Q%40mail.gmail.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 a topic in the >> Google Groups "Ansible Project" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/ansible-project/m5-obFecmd0/unsubscribe >> . >> To unsubscribe from this group and all its topics, 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/CA%2BnsWgxidNdEzLeeZ_FhZ1_aJD8S4UHGf2FjPNSoAQ3PkD2qWg%40mail.gmail.com >> <https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgxidNdEzLeeZ_FhZ1_aJD8S4UHGf2FjPNSoAQ3PkD2qWg%40mail.gmail.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/CAL9jXCGKj0z%3DfajdCo-jD%3DdJ%2BYo1n6%3DHFe9muBj8etyQsH5y6g%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAL9jXCGKj0z%3DfajdCo-jD%3DdJ%2BYo1n6%3DHFe9muBj8etyQsH5y6g%40mail.gmail.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/CA%2BnsWgyjdJ%2By6tw%2B4BuWr1Xajia%2BZRS6uoZvEcK3Ddxfv6dVbg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
