How can I run a ansible task only if a file or directory does NOT exist?


In an Ansible playbook I want to run tasks if a directory does not exists.

But what must I do to ensure that the following tasks runs only if this dir does not exist?


Leave a Reply