install ansible on centos 7 code example

Example 1: how to install ansible in centos

[root@ansible ~]# yum install ansible

Example 2: how to install ansible in centos

[root@ansible ~]# yum install epel-release -y

Example 3: install ansible in redhat

RHEL-8.2.0

then install python3
----yum install python3

then for installing ansible required python pipe
----yum -y install python3-pip


now install ansible by using pip3
----pip3 install ansible

Example 4: instal ansible centos 7

Install Ansible on CentOS 7
https://www.snel.com/support/how-to-install-ansible-on-centos-7/