Hello,

I am currently stuck here only.
I am also doing it in windows only.
Did u find any solution.

Any help will be appreciated.

Regards,
Rahul Pandia


On Tuesday, August 11, 2015 at 12:20:51 AM UTC+5:30, Karthik Rengarajan 
wrote:
>
> 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 <playbook-name>' 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 <module>
>     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 <module>
>     ansible
> NameError: name 'ansible' is not defined
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/dec8e8d6-bf4b-42ac-b745-60fea99c0d16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to