Site icon installvirtual

How to install Ansible on CentOS 7 using yum.?

Install Ansible on CentOS 7

Ansible is a radically simple IT automation engine that automates cloud provisioning, configuration management, application deployment, intra-service orchestration, and many other IT needs.

Being designed for multi-tier deployments since day one, Ansible models your IT infrastructure by describing how all of your systems inter-relate, rather than just managing one system at a time.

It uses no agents and no additional custom security infrastructure, so it’s easy to deploy – and most importantly, it uses a very simple language (YAML, in the form of Ansible Playbooks) that allow you to describe your automation jobs in a way that approaches plain English.

Preinstallation Steps

You need centos 7 for this tutorial and log in as root user to install Ansible.

Add the epel repository

We can found varnish in epel Repos so let’s get add epel repo in centos 7

yum install epel-release                                                                                 or
rpm -i Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

Update your system

Now we will update our centos 7 and all the package so that we will get latest of packages for ansible.

yum -y update

Install Ansible

Now we start installing ansible, we will install ansible using yum use the following command to install ansible:

yum -y install ansible

Check Version

Now we will check ansible version with following command

ansible --version

Configure Ansible

Now we will start configuring ansible. Ansible configuration files are located in following directory

vim /etc/ansible/ansible.cfg

Hosts file location is as follows:

/etc/ansible/hosts

Ansible is installed and configured successfully. You can now use ansible in your environment,

If you face any problem installing ansible feel free to comment below.

Read Also:

Exit mobile version