title: ansible V2 -> "skip_reason": "Conditional check failed" with_items
body: <p>I am getting some errors while doing the following: </p>
  
  <h1>group_vars:</h1>
  
  <pre><code>tomcat_servers:
  - name: tomcat_1
    shutdown_port: 8005
    connector_port: 8080
    ajp_port: 8009
  - name: tomcat_2
    shutdown_port: 8105
    connector_port: 8180
    ajp_port: 8109
  </code></pre>
  
  <h1>main code:</h1>
  
  <pre><code>  - name: "Check if tomcat is already installed"
      stat: path={{ tomcat_server_dir }}/{{ item.name }}/RELEASE-NOTES
      register: status
      with_items: "{{ tomcat_servers }}"
  
    - debug: var=status
  
    - name: "Copy tomcat into folder if it is not installed"
      command: /bin/tar -zxvf /tmp/{{ tomcat_catalina_base }} -C {{ tomcat_server_dir }}/{{ item.name }} --strip 2
  when: not status.results[0].stat.exists
  with_items:
    - "{{ tomcat_servers }}"
    - "{{ status.results }}"
  </code></pre>
  
  <h1>Debug result:</h1>
  
  <pre><code>    ok: [VM1] =&gt; {
          "status": {
          "changed": false,
          "msg": "All items completed",
          "results": [
              {
                  "_ansible_item_result": true,
                  "_ansible_no_log": false,
                  "changed": false,
                  "invocation": {
                      "module_args": {
                          "checksum_algorithm": "sha1",
                          "follow": false,
                          "get_checksum": true,
                          "get_md5": true,
                          "mime": false,
                          "path": "/opt/tomcat_3/RELEASE-NOTES"
                      },
                      "module_name": "stat"
                  },
                  "item": {
                      "ajp_port": 8009,
                      "connector_port": 8080,
                      "name": "tomcat_1",
                      "shutdown_port": 8005
                  },
                  "stat": {
                      "exists": false
                  },
                  {
                      "_ansible_item_result": true,
                      "_ansible_no_log": false,
                      "changed": false,
                      "invocation": {
                          "module_args": {
                              "checksum_algorithm": "sha1",
                              "follow": false,
                              "get_checksum": true,
                              "get_md5": true,
                              "mime": false,
                              "path": "/opt/tomcat_3/RELEASE-NOTES"
                          },
                          "module_name": "stat"
                      },
                      "item": {
                          "ajp_port": 8109,
                          "connector_port": 8180,
                          "name": "tomcat_2",
                          "shutdown_port": 8105
                      },
                      "stat": {
                      "exists": false
                  }
          }
      ]
      }
  }
  </code></pre>
  
  <p>Now unfortunally I seem to get the error</p>
  
  <pre><code>"skip_reason": "Conditional check failed", "skipped": true
  </code></pre>
  
  <p>I have been around the "have you googled it" many times but cannot seem to find the solution here. Google <code>ansible check if file exists with_items</code> and you will probably see the same results. </p>
  
  <p>Any one got an idea how to get this working?</p>