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

Question:

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?

Answer:

Leave a Reply