title: The task includes an option with an undefined variable
body: <p>I have the below vars file and Ansible task which allows some ports for a specific source IPs on the firewall.</p>
  
  <p>But for some reason, whenever I run the task I got this error:</p>
  
  <p><code>FAILED! =&gt; {"msg": "The task includes an option with an undefined variable.</code></p>
  
  <p>Even though I'm able to echo out these variables using <code>debug</code> Ansible module, so basically I'm just unable to use these variable specifically in this task.</p>
  
  <p><strong>Ansible Task:</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>---
  - name:
    firewalld:
      permanent: yes
      port: "{{ item.0 }}"
      state: enabled
      zone: public
      source: "{{ item.1 }}"
      with_nested: 
        - "{{ ports }}"
        - "{{ ips }}"</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>Vars File:</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>ports:
    - "8000/tcp"
    - "9997/tcp"
    - "8181/tcp"
    - "8080/tcp"
    - "8191/tcp"
    - "8088/tcp"
    - "8065/tcp"
    
  ips:
    - "192.168.210.30/32"
    - "192.168.210.35/32"
    - "192.168.210.40/32"
    - "192.168.210.31/32"
    - "192.168.210.36/32"
    - "192.168.210.41/32"
    - "192.168.210.42/32"
    - "192.168.210.37/32"</code></pre>
  </div>
  </div>
  </p>