You can't use glob characters for keys. Use the json query filter instead: https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#json-query-filter
On Thu, 9 May 2019 at 19:03, Srikanth Ethiraj <[email protected]> wrote: > > > How do we do a wildcard search with ansible nested variable? > > > test: > name: > address: > zipcode: 12345 > > > > Ansible nested variable - > > {{ test[name][addre*].zipcode }} > > > > > > > > -- > 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/2348d031-e3d1-4f6e-8a68-54bdce7e4161%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- 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/CAL8fbwP%3DJ6RAmt_biwCYr9TciYyKx_DAiW06De%3DiJTs6xh0ueQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
