Вы можете добавить дополнительные массивы внутри самого zip-фильтра.
zip(list, list, list, ...)
Например:
- hosts: localhost
become: false
gather_facts: false
tasks:
- vars:
list_one:
- one
- two
list_two:
- three
- four
list_three:
- five
- six
debug:
msg: "{{ item.0 }} {{ item.1 }} {{ item.2 }}"
loop: "{{ list_one | zip(list_two, list_three) | list }}"
При запуске:
PLAY [localhost] *********************************************************************************************************************************************
TASK [debug] *************************************************************************************************************************************************
ok: [localhost] => (item=['one', 'three', 'five']) => {
"msg": "one three five"
}
ok: [localhost] => (item=['two', 'four', 'six']) => {
"msg": "two four six"
}
PLAY RECAP ***************************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0