title: The task includes an option with an undefined variable. The error was: 'item' is undefined
body: <p>I am getting below error when I run the following playbook.</p>
  
  <pre><code>fatal: [localhost]: FAILED! =&gt; {"msg": "The task includes an option with an undefined variable. The error was: 'item' is undefined\n\nThe error appears to have been in '/home/thor/user.yml': line 8, column 9, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  tasks:\n      - name: create users\n        ^ here\n"}
  
  
  ---
  - name: create user
    hosts: localhost
    become: true
    become_user: root
    become_method: sudo
    tasks:
        - name: create users
          user:
             name: "{{ item.name }}"
             state: present
        - debug:
             var: "{{ item.message }}"
          with_items:
                - { name: amit, message: amit_done }
                - { name: ankit, message: ankit_done }
  </code></pre>
  
  <p>This works when I comment debug module.</p>