I have the following playbook and I got the above error. This created the directory but not the file. Any ideas?
--- - hosts: local tasks: - name: create a file if it doesnt exist file: path: /home/ansible/touchfile.txt state: touch mode: 0755 tasks: - name: create a directory if it doesnt exist file: path: /home/ansible/touchdir state: directory mode: 0755 -- 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/ec295e3c-2a36-4917-a725-26a499030858%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.