Hi,

Gist available at: 
https://gist.github.com/oravirt/c13406766e820e99be9d1e5c30562075

I've got a structure like this:

     blergh: 
        - parent: first_layer
          first_layer_list:
               - { name: first_layer_list_1st_name }
               - { name: first_layer_list_2nd_name }
          child:
               - name: second_layer
                 second_layer_list:
                     - {name: second_layer_list_1st_name}
                     - {name: second_layer_list_2nd_name}





I want to access the elements in the second_layer_list, but not sure if 
that is possible.

I can access the 'child.name', with no problems (using with_subelements), 
but I'm not sure how to get deeper into the structure.


The whole point of the structure is that you can have x number of  'parent' 
with y number of o names (first_layer_list). It is also possible to have x 
number of  'child' within the parent which in turn also can have x number 
of names (second_layer_list)


One option could be to move 'child' to its own list (like blergh) and 
'join' child.name  to blergh.parent key, but I'd rather keep it in the same 
structure if possible.

Any ideas?

regards
/M


-- 
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/9b9e657d-7476-4321-b779-cb38b62ea190%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to