title: Ansible user prompt in apt module - unable to pass value "Yes"
body: <p>I am using ansible apt module <a href="http://docs.ansible.com/ansible/apt_module.html" rel="nofollow">apt</a> in my playbook. It asks for a user prompt and I want to provide "Y". Could some one please tell how this can be done. I used "expect" but it doesn't work.</p>
  
  <pre><code>- name: Install latest apparmor packages - xxx-policy
    expect:
      apt: pkg={{ item.name }}={{ item.deb_version }} update_cache=yes state=present force=yes
      with_items: { name: 'xaz-policy', deb_version: '{{ apparmor.xxx_policy.deb_version }}'}
      when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
      responses:
        Question:
          - 'Y'
  </code></pre>
  
  <p>And I get below error</p>
  
  <pre><code>TASK [Install latest apparmor packages - xxx-policy] ************************    task path:    /home/jenkins/workspace/OSInnovationB/docker_upgradation_job/playbooks/tasks/test.yml:47 fatal: [xxx-xxx-host-01]: FAILED! =&gt; {"failed": true, "msg": "'item' is undefined"}
  </code></pre>