Unable to install ansible with the given commands in the docs and there is no pa . . .

Abhishek Bakaya:
Unable to install ansible with the given commands in the docs and there is no package available as “ansible”. Please look at the ss and tell me which one to install as there are multiple ansible packages available.


image.png

Pawel Trebacz:
try to update cache first - use sudo yum update command, then try to install ansible package

Al West:
Your first command to install epel-release is not working. Are you on redhat 8? Try using this:

sudo dnf install <https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm>

Abhishek Bakaya:
I’m on CentOS 9.

Al West:
This should work:

sudo dnf install <https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm>

Abhishek Bakaya:
updating yum worked.