I am trying to find whether particular director exists in ansible, if not, create the one..The problem i am facing here is that the below code should not create a /var/tmp/directory, but it creates while running this.. ( the below code is not for creating a directory i think)
tasks:
- name: Checking /var/tmp/ansible directory exists
stat: path=/var/tmp/ansible
register: status
can anyone please help me to fix this issue..