> 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/f6c474d3-1af7-4c91-afc7-e8f66dcce473%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to