Looping over a hash Subelement

Hi,

I would like to do something like the example in Looping over Subelements but using a hash instead of a list.

`

Can you show the task how you try that?

I was trying to follow with_dic notation,

`

  • command: echo {{ item.0.value.name }} {{ item.1 }}
    with_subelements:
  • users
  • authorized
    `

but then I just used directly the name property and it worked:

`

  • command: echo {{ item.0.name }} {{ item.1 }}
    with_subelements:
  • users
  • authorized
    `

I apologize for wasting your time.