How to Install Ansible Master Node on CentOS 8

Ansible is a free and open source Configuration and automation tool. We can configure, manage, deploy and automate a large number of client machines from a central machine using Ansible. It communicates over SSH and it doesn’t require installing any agent on the client machines. Ansible uses lots of Ad-hoc commands, playbooks and roles that’s are written in YAML.

This article describes How to Install and configure Ansible Master Node on CentOS8.
Step 1. EPEL Configuration: Since ansible packages are not available in CentOS8repository. Follow the article How toconfigure EPEL repository on CentOS 8 to enable EPEL repository.
Step 2. Package Installation: Once EPEL repository enabled, run the following command to install Ansible packages:
[[email protected] ~]# dnf install ansible –y
…………………………………………….
Installed:
  ansible-2.9.7-1.el8.noarch            python3-paramiko-2.4.3-1.el8.noarch                  python3-babel-2.5.1-5.el8.noarch   python3-jinja2-2.10.1-2.el8_0.noarch
  python3-jmespath-0.9.
0-11.el8.noarch  python3-markupsafe-0.23-19.el8.x86_64                python3-pip-9.0.3-15.el8.noarch    python3-pyasn1-0.3.7-6.el8.noarch
  python3-pytz-2017.2-9.el8.noarch      python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64  python3-pyyaml-3.12-12.el8.x86_64  python3-setuptools-39.2.0-5.el8.noarch
  libsodium-1.0.18-2.el8.x86_64         python3-bcrypt-3.1.6-2.el8.1.x86_64                  python3-pynacl-1.3.0-5.el8.x86_64  sshpass-1.06-9.el8.x86_64
Complete!
Step 3. Verify the Installation: Run the following command to verify the installation by checking Ansible installed version:
[[email protected] ~]# ansible –version
ansible 2.9.7
  config file = /etc/ansible/ansible.cfg
  configured module search path = [‘/root/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
  ansible python module location = /usr/lib/python3.6/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.6.8 (default, May 21 2019, 23:51:36) [GCC 8.2.1 20180905 (Red Hat 8.2.1-3)]
Done! Ansible version ansible 2.9.7 installed successfully. Follow the article How to Configure Ansible Master Node on CentOS 8.

Leave a Reply