yum install ansible=2.9 code example
Example 1: how to install ansible in centos
[root@ansible ~]# yum install ansible
Example 2: instal ansible centos 7
Install Ansible on CentOS 7
https://www.snel.com/support/how-to-install-ansible-on-centos-7/