Ansible is a free and open-source automation tool and it is available in default package repository/App Stream and no need any special repository to be enabled.
Step 1: Install ansible using dnf command
#dnf install -y ansible-core
Once installed, very its version by running below command and we can say this as verifiting whether the ansible or not in our server.
We can check this by executing something over remote servers using this ansible server. For that, first we need ssh to be enabled between Ansible and remote server. Please use the below link to know how to configure ssh in linux?