title: Ansible - What's the proper syntax for loop + zip when combining more than two lists?
body: <p>I haven't been able to find the syntax for loop + zip when combining more than 2 lists.</p>
  
  <p>Since Ansible 2.5, as shown <a href="https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.5.html#with-together" rel="noreferrer">here</a>, the following syntax replaces with_together with loop + zip:</p>
  
  <pre><code>- name: with_together
    debug:
      msg: "{{ item.0 }} - {{ item.1 }}"
    with_together:
      - "{{ list_one }}"
      - "{{ list_two }}"
  
  - name: with_together -&gt; loop
    debug:
      msg: "{{ item.0 }} - {{ item.1 }}"
    loop: "{{ list_one|zip(list_two)|list }}"
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>loop: "{{ list_one|zip(list_two)|zip(list_three)|zip(list_four)list }}"
  </code></pre>
  
  <p>Without success.</p>