Hi,
The version of Ansible we are using does not support selectattr to filter a list based on attribute names. So I instead use something like this:
set_fact:
thing: '{{ (things | json_query("[?thing_name==''" + a_thing_name + "'']") | list)[0] }}'
Is there a cleaner way to do this? Without using double single-quotes for escaping and + for concatenation?