Installing Ansible on Fedora 25 using dnf
Before installing ansible on Fedora 25 you should install python2. Currently, ansible works with only Python2.6 or and 2.7 version. The support for Python3 is in beta version only.
Login as a root user and give the following commands.
dnf install python2
After installation check, if python is installed by running the command
To install Ansible execute the command
dnf install ansible
Enter ‘y’ when asked for confirmation
Check if ansible is installed correctly by checking the version
That’s it. You have installed ansible:).