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.ImportError: No module named yum
My playbook looks like below :-
---
- hosts: default
connection: local
sudo: true
tasks:
- name: install apache
yum: name=httpd state=latest
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.
With
connection: local
you are running the playbook on your host which is Ubuntu.
And that's why it doesn't find yum.