Hi, I am new to ansible and learning ansible from a tutorial. I am using windows 7 (unfortunately) and Vagrant with VirtualBox. I have installed ansible 2.0.0 on one vagrant ubuntu box and the ansible inventory file has an entry for another ubuntu vagrant box.
When running ‘ansible all -m ping’ it returns with success message however when executing the ‘ansible-playbook ’ it returns with the below error. Can you please advise if I am missing something.
Traceback (most recent call last):
File “/usr/local/bin/ansible-playbook”, line 5, in
pkg_resources.run_script(‘ansible==2.0.0’, ‘ansible-playbook’)
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 528, in run_script
self.require(requires)[0].run_script(script_name, ns)
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 1394, in run_script
execfile(script_filename, namespace, namespace)
File “/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/EGG-INFO/scripts/ansible-playbook”, line 1, in
ansible
NameError: name ‘ansible’ is not defined