Discussion:
[ansible-project] Check Multiple Directory Exists in File Module with state as directory
dinesh kumar
2015-07-23 16:50:10 UTC
Permalink
Hi i am trying to verify/create multiple folder exists in remote. What i've
now is

- file: path="{{download_location}}" state=directory
- file: path="{{applications_location}}" state=directory

Is there any way to check muliple folder exists?

or is this preferred mkdir -p dir1 dir2 ... ?
--
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+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4d23d450-5132-429b-b5bb-99b05a8a05a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Brian Coca
2015-07-23 17:06:51 UTC
Permalink
- file: path="{{item}}" state=directory
Post by dinesh kumar
Hi i am trying to verify/create multiple folder exists in remote. What i've
now is
- file: path="{{download_location}}" state=directory
- file: path="{{applications_location}}" state=directory
Is there any way to check muliple folder exists?
or is this preferred mkdir -p dir1 dir2 ... ?
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/4d23d450-5132-429b-b5bb-99b05a8a05a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Brian Coca
--
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+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8%3Df8GU2e2p5LT1yKGUf8uP1_6habyxpshGK28c3cT8oOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...