Re: [ansible-project] Loop over a list that points at structures

2014-08-08 Thread Michael DeHaan
Yeah you are going to need to write your own iterator for a lookup plugin at that level of complexity. Take a look at "with_subelements" for one example of one that is almost there. Or you could just restructure your info to make it easier, if it was coming from a YAML file. On Fri, Aug 8,

[ansible-project] Loop over a list that points at structures

2014-08-08 Thread mtovey
I have structures in group_vars files that looks roughly like the following: Accounts1: files: - { src: 'src_path/filename1', dest: 'dest_path/filename1' } - { src: 'src_path/filename2', dest: 'dest_path/filename2' } app_groups: - { name: 'group1', gid: '1234' }