Retrieve group children

I don’t know how to retrieve simply group children

I have this structure
[group1]
foo1
foo2

[group2]
bar1
bar2

[group3]
baz1
baz2

[MetaGroupA:children]
group1
group2

[MetaGroupB:children]
group3

For some goup_vars, I just want to loop for each group of MetaGroups, but don’t want to loop on hosts

Could you give me way to achieve this ? (with a “for” loop ?)

Regards

They don’t work that way.
[MetaGroupA:chldren]
group1
group2

is effectively
[MetaGroupA]
foo1
foo2
bar1
bar2

So trying to loop over MetaGroupA WILL loop over all the hosts in the child groups.