I think you need to declare ansible_facts before your variable, and then 
you need to iterate through the array so try this:

- name: debug
  debug:
    msg: "{{ item['name'] }}"
  with_items: "{{ ansible_facts['test123'] }}"


And if you don't want to iterate through all of them, you need to call the 
specific array location since you have placed them in a list:

ansible_facts['test123'][0]['name']

That should get you the first one.

-- 
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/c17c23eb-034f-47af-884a-206363de9a4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to