This will pull the required dependencies to install with “ansible”. It’s time to install with “ansible” using pip installer. Installed /usr/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg Processing dependencies for pip Finished processing dependencies for ~] Running pip-9.0.1/setup.py -q bdist_egg -dist-dir /tmp/easy_install-m6_rHv/pip-9.0.1/egg-dist-tmp-diQmptĪdding pip 9.0.1 to easy-install.pth file Writing /tmp/easy_install-m6_rHv/pip-9.0.1/setup.cfg Searching for pip Reading Best match: pip 9.0.1 Downloading # sudo easy_install ~]# sudo easy_install pip Now install wit “pip” being root user run the below command to install with “pip”. Python-setuptools.noarch 0:0.9.8-4.el7 Dependency Installed: > Finished Dependency Resolution Installed: > Package python-backports.x86_64 0:1.0-8.el7 will be installed > Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.4.0. > Package python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el7 will be installed > Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9. > Package python-setuptools.noarch 0:0.9.8-4.el7 will be installed # yum install python-setuptools ~]# yum install python-setuptools By installing “python-setuptools” we will get “easy_install”.
How to create a host’s Inventory using Ansible.Install Ansible using Python installation manager pip.Install and configure Ansible Automation IT Tool.To know how to install and configure “Ansible” you can refer to the below links.
pip is package management used to install software which written in Python. Python version = 3.6.Pip can be called as preferred installer program. You should have the following ~]$ ansible –versionĬonfigured module search path = Īnsible python module location = /usr/local/lib/python3.6/site-packages/ansibleĮxecutable location = /usr/local/bin/ansible Once installed, you can verify that installation was done correctly by checking the version of Ansible package: Successfully installed MarkupSafe-1.1.1 ansible-2.8.5 jinja2-2.10.1
Running setup.py install for ansible … done
Installing collected packages: MarkupSafe, jinja2, ansible Requirement already satisfied: pycparser in /usr/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.7->cryptography->ansible) Requirement already satisfied: cffi!=1.11.3,>=1.7 in /usr/lib64/python3.6/site-packages (from cryptography->ansible) Requirement already satisfied: six>=1.4.1 in /usr/lib/python3.6/site-packages (from cryptography->ansible) Requirement already satisfied: asn1crypto>=0.21.0 in /usr/lib/python3.6/site-packages (from cryptography->ansible) Requirement already satisfied: idna>=2.1 in /usr/lib/python3.6/site-packages (from cryptography->ansible) Requirement already satisfied: cryptography in /usr/lib64/python3.6/site-packages (from ansible)Ĭollecting MarkupSafe>=0.23 (from jinja2->ansible) Requirement already satisfied: PyYAML in /usr/lib64/python3.6/site-packages (from ansible) logon to your VM as regular user and perform the following steps: Now that all requirement are met, let’s start with Ansible installation.