I built an RPM for RH5 and I'm running into issues with some of the modules I need. First things first, I'm running Ansible 1.9.2. Now, once the RPM is installed, running ansible --version
returns the following.
> ansible --version
ansible 1.9.2
configured module search path = None
One of the modules I need is Hipchat, which is throwing an SSL error.
PROTOCOL = ssl.PROTOCOL_TLSv1
NameError: name 'ssl' is not defined
Now, if I set PYTHONPATH
to ~/ansible/lib everything works fine. ~ansible
is a 1.9 copy from source. My RPM installs the Ansible libraries into /usr/lib/python2.6/site-packages/ansible.
So if I point PYTHONPATH
to that path, my module doesn't work and it doesn't show what I normally see below.
ansible 1.9.2 (stable-1.9 b70caac618) last updated 2015/06/05 15:22:40 (GMT-400)
lib/ansible/modules/core: (detached HEAD 618806aeeb) last updated 2015/03/04 12:39:45 (GMT -400)
lib/ansible/modules/extras: (detached HEAD 945da71ce4) last updated 2015/03/04 12:39:53 (GMT -400)
v2/ansible/modules/core: (detached HEAD 34784b7a61) last updated 2015/03/04 12:40:03 (GMT -400)
v2/ansible/modules/extras: (detached HEAD 650d740a3a) last updated 2015/03/04 12:40:10 (GMT -400)
configured module search path = None