I haven't been able to find the syntax for loop + zip when combining more than 2 lists.
Since Ansible 2.5, as shown here, the following syntax replaces with_together with loop + zip:
- name: with_together
debug:
msg: "{{ item.0 }} - {{ item.1 }}"
with_together:
- "{{ list_one }}"
- "{{ list_two }}"
- name: with_together -> loop
debug:
msg: "{{ item.0 }} - {{ item.1 }}"
loop: "{{ list_one|zip(list_two)|list }}"
My question is, whereas when using with_together, you could simply append lists, and reference them with iterating numbers, I haven't been able to find the method to use with loop + zip. I have tried:
loop: "{{ list_one|zip(list_two)|zip(list_three)|zip(list_four)list }}"
Without success.