Guillaume Querso
2015-07-23 08:36:10 UTC
i am not sure it is possible to do so, but i would like to have a list of
list. it would look like this:
my_files:
path: /data/ansible/testing1/
- {name: 'test1.reg', ext: '.reg'}
- {name: 'test1.lst', ext: '.lst'}
- {name: 'test1.sql', ext: '.sql'}
path: /data/ansible/testing2/
- {name: 'test2.reg', ext: '.reg'}
- {name: 'test2.lst', ext: '.lst'}
- {name: 'test2.xsl', ext: '.xsl'}
and most important, how can i access to those vairables in a playbook?
Note: i absolutely need to keep this kind of hierarchy with the path and
then the files in this path.
Thank you!
list. it would look like this:
my_files:
path: /data/ansible/testing1/
- {name: 'test1.reg', ext: '.reg'}
- {name: 'test1.lst', ext: '.lst'}
- {name: 'test1.sql', ext: '.sql'}
path: /data/ansible/testing2/
- {name: 'test2.reg', ext: '.reg'}
- {name: 'test2.lst', ext: '.lst'}
- {name: 'test2.xsl', ext: '.xsl'}
and most important, how can i access to those vairables in a playbook?
Note: i absolutely need to keep this kind of hierarchy with the path and
then the files in this path.
Thank you!
--
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/61c7d5bf-9906-497f-a680-273f52cc22bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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/61c7d5bf-9906-497f-a680-273f52cc22bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.