Hi - Installed ansible (not the first time) but on a new box - and although pip install worked fine if I use ping command I get 'FAILED => paramiko is not installed'

pip install paramiko PyYAML Jinja2 httplib2 --upgrade
Requirement already up-to-date: paramiko in /usr/lib/python2.6/site-packages
Requirement already up-to-date: PyYAML in /usr/lib64/python2.6/site-packages
Requirement already up-to-date: Jinja2 in /usr/lib/python2.6/site-packages
Requirement already up-to-date: httplib2 in /usr/lib/python2.6/site-packages
Requirement already up-to-date: markupsafe in /usr/lib/python2.6/site-packages (from Jinja2)

– so paramiko says it is registered. But:

[root@jenkins6 ansible]# paramiko

bash: paramiko: command not found

Python version:

[root@jenkins6 ansible]# python --version
Python 2.6.6
[root@jenkins6 ansible]#

[root@jenkins6 ansible]# ansible all -m ping
127.0.0.1 | FAILED => paramiko is not installed
[root@jenkins6 ansible]#

Any suggestions?

thanks in advance!

check ansible shebang and make sure it is executing the same python

Thanks Brian

So I think you are correct - if I look in the ‘setup.py’ file the python shebang is: ‘#!/usr/bin/env python’
but if I type ‘which python’ I get ‘/usr/bin/python’ -

Should I expect them to be the same? If so should I symlink for python or change the ansible files (upgrade issues spring to mind) or something else?

thanks!

S

what about the shebang in ansible/ansible-playbook ?