Hello Experts,
Background : Installing Ansible on a Host which is not connected to Internet. It’s running on SUSE Linux Enterprise Server 11 SP4
-
Already Installed Python version: Python 2.6.9
-
Installed Python 2.7 from https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz
Created symbolic link:
Python 2.7.12 (default, Jun 27 2017, 23:46:35)
[GCC 4.3.4 [gcc-4_3-branch revision 152973]] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
- Downloaded Ansible 2.3.1 from below link
I can see ansible libraries been deployed into /usr/lib64/python2.6/site-packages/ansible and/etc/ansible
But when i do # ansible , below error shows up. Am not sure what’s missing and how to fix this?
Traceback (most recent call last):
File “/usr/bin/ansible”, line 43, in
import ansible.constants as C
ImportError: No module named ansible.constants
CVMLNX0038:/usr/lib64/python2.6/site-packages/a
Please help? Thanls.