I'm trying to figure out how to do 'subelements' with the query plugin. The 
thing below doesn't work, it complains that "could not find 'ssh_key' key 
in iterated item". So the skip_missing is not working. While when I use 
'with_subelements' it does work. Can someone see what I'm doing wrong?
 

> - name: debug user struct
>   debug:
>     msg: "{{ item.1 }}"
>   loop: "{{ query('subelements', user, 'ssh_key', skip_missing=yes) }}"
>   tags: test29



- name: debug user struct
>   debug:
>     msg: "{{ item.1 }}"
>     with_subelements:
>       - "{{ user }}"
>       - ssh_key
>       - skip_missing: yes



-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/dd20a3ca-d98b-4b23-8214-7bc8fb3832ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to