Installing Ansible on Fedora 25

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.

Installing Python2

Login as a root user and give the following commands.

dnf install python2

After installation check, if python is installed by running the command

python2

Python2 installation check

Installing Ansible

To install Ansible execute the command

dnf install ansible

Enter ‘y’ when asked for confirmation

Ansible install fedora 25

Check if ansible is installed correctly by checking the version

Ansible installation check

That’s it. You have installed ansible:).