Windows can't make correct symlinks. Do this:
cd /usr/local/lib/python2.7/
dist-packages/ansible-2.0.0-py2.7.egg/EGG-INFO/scripts
cp ansible ansible-playbook
cp ansible ansible-console
cp ansible ansible-doc
cp ansible ansible-galaxy
cp ansible ansible-pull
cp ansible ansible-vault

On Monday, August 10, 2015 at 9:50:51 PM UTC+3, 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/929d5fd0-8716-435b-8ddf-1dd21746d428%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to