Running Ansible from RPM

14 views
Skip to first unread message

Samnang Sen

unread,
Jul 24, 2015, 3:42:55 PM7/24/15
to Ansible Project
When I run Ansible from source by sourcing the env-setup file under the hacking folder, I'm able to run Ansible just fine. So now I want to run it via an RPM that i built for my RH5 hosts. When I run "ansible --version" I get the following ...

# ansible --version
ansible 1.9.2
  configured module search path = None

So i went digging into the env-setup file and noticed the PYTHONPATH is pointed to ~/ansible/lib. The libraries from my RPMs are installed under /usr/lib/python2.6/site-packages. If I export PYTHONPATH pointing to that path it doesn't appear to be working. What am I doing wrong?
Reply all
Reply to author
Forward
0 new messages