with_nested:
- myList
- [ "plug" ]
Let my explain a bit more my use case (which is not a simple source control problem).
Maybe I am the only one but tasks can rapidly become hard to read and hard to write because item.0, item.1,.. are not natural (at least to me)
so what I do is define in defaults/main.yml a set of macro accessors, like, for instance :
m_config: "{{ bundle[item[0]].item[1] }}"
and then in the roles I can simply use everywhere looping permits, m_config.key1, m_config.key2, ..
those "macro accessors" are very useful also when I need to re-organize the model of the datas because I usually simply have to change the macro definitions instead of going through the whole role.
My original post stemmed from the fact that with_items do not have the same references ({{ item }}) as with_nested ({{ item.0 }}) so the macro accessors cannot be shared between the with_items and with_nested cases.
I have a solution with the ["plug"], but the "one list" with_nested could have made this plug non-necessary.
Jerome