Installing an Ansible control node on CentOS

Ansible can be installed on many different operating systems and can run equally well on a Red Hat-based Linux distribution as it can on Ubuntu. This recipe will show you how to install Ansible on a CentOS 7 server.

Getting ready

For this recipe, you need an instance of CentOS 7.

How to do it…

Let's install an Ansible control node on CentOS:

  1. We need to install the Extra Packages for Enterprise Linux (EPEL) repository before we install Ansible. You can install it with the following command:
    $ sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    
  2. Install Ansible using the following command:
    $ sudo yum install ansible
    
  3. You can test if Ansible is installed correctly using ...

Get Learning DevOps: Continuously Deliver Better Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.