🌐 🇵🇱 Polski · 🇬🇧 EN
After the introduction, it's time for installation. In this post, I will focus on the installation on CentOS 7. To start installing the tool, you will need to add the EPEL (Extra Packages for Enterprise Linux) repository. It is an additional software repository available under Open Source terms, provided by the community centered around the Fedora, CentOS, and Scientific Linux projects. The EPEL repository is not part of the RHEL/CentOS distribution, but it is applicable to major Linux distributions, providing a large resource of open packages intended for network administrators, developers, monitoring teams, etc.
Step 1 - Adding the EPEL repository
Assuming our host has a properly configured network, we download the appropriate RPM file using wget or use the RPM package manager directly without downloading.
rpm -Uvh http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
In the example above, this is the package for 64-bit version 7 systems; for others, they are respectively:
RHEL/CentOS 6 32 and 64 bit :
http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
RHEL/CentOS 5 32 and 64 bit :
http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
RHEL/CentOS 4 32 and 64 bit :
http://download.fedoraproject.org/pub/epel/4/i386/epel-release-4-10.noarch.rpmhttp://download.fedoraproject.org/pub/epel/4/x86_64/epel-release-4-10.noarch.rpm
The EPEL repository configuration file should now be located at:
/etc/yum.repos.d/epel.repo
If we have already added the repository, we can proceed to install the ANSIBLE tool.
Step 2 - Installation and checking the ANSIBLE version
yum clean all
yum install ansible
Checking the ANSIBLE version:
# ansible --version
ansible 1.9.4
# rpm -qa | grep ansible
ansible-1.9.4-1.el7.noarch
ANSIBLE is now installed.
To work with ANSIBLE, it is necessary to ensure key-based communication with the hosts you want to manage.
Additional information:

Comments