Centos установим репозиторий epel
yum install epel-release
установим ansible
yum install ansible
проверим версию
ansible –version