Hi Akos, The template module (being part of the file module family), does support the use of `force=no`, meaning the file will not be replaced if it already exists. This is not documented on that modules page, which we will get updated.
Thanks! On Wed, Nov 5, 2014 at 10:44 PM, Akos Vandra <axo...@gmail.com> wrote: > Hello, > > This might be a wierd feature request at first, but would you accept a PR > to add an option to the template module to create but do NOT update the > generated file? > > I find myself needing this when generating secrets. > I do want to generate my secret file if it does not exists (and it needs > to be generated to a form dictated by a template), but I do not want to > change its contents which is usually generated by a PRNG. > > Regards, > Akos Vandra > > -- > 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/CAHHcNoeB3pGR8W77gPoFk6wExKSAH8F%2Bym1YdCHsx2ocS9GUMA%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAHHcNoeB3pGR8W77gPoFk6wExKSAH8F%2Bym1YdCHsx2ocS9GUMA%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 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/CAMFyvFgwSUyx6AV%3DbMuQQg4UW9vWu%2BgZzRYixiMW2gTTAphccQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.