title: Loop for ansible arrays
body: <p>I am registering two variables using ansible task and result of which is-</p>
  
  <pre><code>"pathlist": [
          "/dir1/dir2/dir3",
          "/dir1/dir2/dir3/abc.txt",
          "/dir1/dir2/dir3/testme"
      ]
  
  "pathexists": [
          true,
          true,
          false
      ]
  </code></pre>
  
  <p>I want to print the output as -</p>
  
  <pre><code>"/dir1/dir2/dir3" -- true
  "/dir1/dir2/dir3/abc.txt" -- true
  "/dir1/dir2/dir3/testme" -- false
  </code></pre>
  
  <p>I am using following piece of code for printing the final result-
  - set_fact:<br>
      output: "{{ item.0 }} -- {{ item.1 }}\n"<br>
    with_nested:<br>
      - "{{ pathlist  }}"
      - "{{ pathexists }}"</p>
  
  <ul>
  <li>debug: var=output</li>
  </ul>
  
  <p>I guess, I am missing something. Any help will be of great use.</p>