You can iterate through it in a jinja template, though only for a fixed depth as you would need to code each iteration level manually (AFAIK)
{% for p in ppools %} {% for devices in ppools[p].devices %} etc On 1 October 2014 09:28, Sergey Sudakovich <sudy...@gmail.com> wrote: > It looks like I will need to flatten out the structure, just want somebody > to confirm that there is no other obvious way. > > > On Tuesday, September 30, 2014 10:24:29 PM UTC-7, Sergey Sudakovich wrote: >> >> I have a dictionary like this: >> ppools: >> one: >> devices: >> - abc >> - cde >> types: [ typea, typeb, typec] >> branch: aaa >> two: >> devices: >> - fgh >> - ijk >> types: [ typea, typeb, typec] >> branch: bbb >> >> I was wondering if I can somehow iterate over it so that the elements >> show up like so: >> >> - one, abc, typea >> - one, abc, typeb >> - one, abc, typec >> - one, cde, typea >> - one, cde, typeb >> - one, cde, typec >> - two, fgh, typea >> - two, fgh, typeb >> ............................................... >> >> Appreciate any advice. >> > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to ansible-project@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/b1300fb8-3bb6-4f8e-967a-7b35d26743db%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/b1300fb8-3bb6-4f8e-967a-7b35d26743db%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > 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+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEhzMJAddZjG8rEMMwQg4aOSA-FPzWggRR13oUwse6Tux8FrhA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.