42697/ansible-task-to-know-if-a-path-exists-and-if-its-a-directory
Hi @Nisha, use the stat module provided by Ansible for this:
- stat: path: /path/to/something register: p - debug: msg: "Path exists and is a directory" when: p.stat.isdir is defined and p.stat.isdir
To create a directory using Ansible, you ...READ MORE
Hey @Neha, you can use the stats ...READ MORE
Hey @Nishant, you can use the copy ...READ MORE
Hey @Roshan, ansible provides wiht AWS module ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
It can work if you try to put ...READ MORE
When you use docker-compose down, all the ...READ MORE
Hi @neha, you can write your task ...READ MORE
Hey @Ali, try running it as a ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.