Ansible_Installation

Ansible_Installation

What’s the Use of Ansible

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

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.

On this page, we'll give you a really quick overview so you can see things in context. For more detail, hop over to docs.ansible.com.

My Environment Setup

Operating System :    Red Hat Enterprise Linux Server release 7.3 (Maipo)
IP-
Address            :    192.168.40.138
Host-name            :    feenixdv
User                     :    root

On RHEL/CentOS/Fedora, Unfortunately, there is no official Ansible repository for RedHat based clones.  For RHEL/CentOS 6, 7, you have to enable EPEL repo.

To enable EPEL repo download RPM and install.

After installation you can check repo file created inside “/etc/yum.repos.d/

[root@feenixdv ~]# cd /etc/yum.repos.d/
[root@feenixdv yum.repos.d]# ls -l
total 16
-rw-r–r–. 1 root root  951 Oct  2  2017 epel.repo
-rw-r–r–. 1 root root 1050 Oct  2  2017 epel-testing.repo

Now check installation with YUM command.

[root@feenixdv yum.repos.d]# yum install ansible -y

Cross check Ansible installation using this.

[root@feenixdv yum.repos.d]# cd /etc/ansible/
[root@feenixdv ansible]# ls -l
total 24
-rw-r–r–. 1 root root 20277 Dec 13 21:57 ansible.cfg
-rw-r–r–. 1 root root  1053 Jan  3 05:30 hosts
drwxr-xr-x. 2 root root     6 Dec 13 21:57 roles 

Using command line.

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *