- name: Create directory structure
hosts: newserver
tasks:
- name: Directory structure
win_file: path="{{ item }}" state=directory
with_file:
- first_example_file
Above is the ansible script I'm using to create directory, path to the new
directory is given in the file 'first_example_file'. How should we pass
multiple values in the file (i.e. when we have to create multiple
directories, what is the format of tje file?)
On Friday, July 1, 2016 at 10:13:02 PM UTC+5:30, [email protected] wrote:
>
> Can you show an example of what you are trying to accomplish?
>
> On Friday, July 1, 2016 at 9:44:22 AM UTC-4, Rakshatha shetty wrote:
>>
>> Hi,
>>
>> I'm using Ansible 2.0.0.2 to create multiple directories by passing path
>> to directories in a file and reading the values from file. How can multiple
>> values be passed in a single file? Please revert with the format in which
>> values (i.e. path to directories) should be passed in the file.
>>
>> Thanks & Regards,
>> Rakshatha
>>
>
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/7bf2eac9-c3a5-4aa3-9c16-b2fd672bf51e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.