Yum module not found ansible
<p>I'm very new to Vagrant and Ansible, somehow I managed to setup Vagrant and have a box running but when i try to provision it with Ansible then I get error.<code>ImportError: No module named yum</code></p>

<p>My playbook looks like below :-</p>

<pre><code>---
- hosts: default
  connection: local
  sudo: true
  tasks:

  - name: install apache
    yum: name=httpd state=latest
</code></pre>

<p>I'm using Ubuntu as my host machine and have Vagrant 1.8.5 and latest version of Ansible on it.Can somebody please suggest where I'm mistaking. Thanks in advance.</p>