If the file already exists, this task also reports "ok", though it doesn't add the line, even to an empty file.
On Wednesday, March 18, 2015 at 5:14:27 PM UTC-4, Michael Bushey wrote: > > > I would have expected ansible to create the file instead of erroring out. > > Do this first to make sure it exists: > > - name: Create /etc/hosts.deny > shell: touch /etc/hosts.deny creates=/etc/hosts.deny > > > -- 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/a42877dc-03f6-4a65-9436-e0e9d917c6a7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
