ansible apt-get centos code example
Example: 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