Hi,
I have a template called in a loop. In order to improve readability and reusability, I’d like to avoid any {{item}}, {{item.0}} or {{item.1.something}} in my template file.
According to issue #4546, this doesn’t seem possible. There is no documentation about this on the template module page.
I tried like the following, which is also not working:
- template: src=src.j2 dest=/tmp/dest
vars:
index: “{{ item.0 }}”
thing: “{{ item.1 }}”
with_indexed_items: things_collection
Am I missing something ? Should I open a feature request for this ?
Thanks.