Ansible is a simple IT automation platform written in python that makes your applications and systems easier to deploy. It has become quite popular over the past few years but you may hit some trouble when trying to run Ansible on Fedora 23.

Fedora 23 is now using Python 3 as the default python version that gets installed, but Ansible still requires Python 2. Because Ansible still assumes Python 2 by default, errors similar to the following may be returned when trying to use Ansible on Fedora 23:

#
GATHERING FACTS *
failed: [f23] => {"failed": true, "parsed": false}
/bin/sh: /usr/bin/python: No such file or directory
#

Fortunately, there are a few steps you can add to your playbooks in order to fully workaround this problem. You can either choose to apply them in a single play or in multiple plays as shown below. Continue reading.

configuration management