How to loop over multiple subkeys?

Consider the following:

`
users:

  • name: a
    phone_parents:
  • 123123123
  • 234234234
    phone_roommate:
  • 456456456
  • 567567567
  • name: b
    phone_parents:
  • 789789789
    phone_roommate:
  • 890890890
  • 678678678

`

With subelement, I can only define one subkey per loop:

`

  • debug: msg=“Contacts: {{ item.1 }}”
    with_subelements:
  • “{{ users }}”
  • phone_parents

`

My result is as expected:

`

“msg”: “Contacts: 123123123”
“msg”: “Contacts: 234234234”
“msg”: “Contacts: 789789798”

`

However, I would like to have all phone numbers (phone_parents + phone_roommate) in a single loop like the following:

`

“msg”: “Contacts: 123123123”
“msg”: “Contacts: 234234234”
“msg”: “Contacts: 456456456”

“msg”: “Contacts: 567567567”
“msg”: “Contacts: 789789789”
“msg”: “Contacts: 890809890”

“msg”: “Contacts: 678678678”

`

How can I achieve that with Ansible?