I am trying to process a nested data structure and can't find a suitable syntax to let me do it. Ansible only seems to allow one level of looping, or two with sub-elements.
Given a data structure like this:
vars:
vpcs:
name: blah
tiers:
- name: tier1
subnets:
- name: subnet1
[... more subnets ...]
... how do I do the equivalent of:
for each VPC
for each tier for each subnet
create subnet
I.e., three nested levels?
I don't have to do it this way; I can flatten the data structures, but the data structure is naturally nested, so it would be nice to be able to use it in that form.
Yours hopefully, K.
--