I have this list of dictionaries:
some_list:
- name: alfa
dir: aaa
- name: beta
dir: bbb
- name: gamma
dir: ggg
and I want to get, via Ansible/Jinja, a subset of some_list, should still be a list, which only contains the dicts having name in ['alfa', 'beta'].
I will use the sublist in a with_items.