ansible in Fedora 23+ (python3)
dusty at dustymabe.com
Wed Oct 14 02:21:53 UTC 2015
Just wondering if anyone has started to feel any pain from trying to
use ansible with F23 systems. As part of the Fedora Cloud working
group it would be nice to ship a system that could be targeted by
ansible out of the box. Unfortunately, since ansible uses python 2.X
vs python 3 it doesn't really work.
A simple answer would be to "just install python", but I actually hit
several roadblocks because of python packages that are usually there
but have been replaced by their python 3 counterparts. As an example
for one ansible playbook like  I had to install these rpms in order
to get it to work:
python libselinux-python python-dnf python-docker-py
Unfortunately there isn't a catchall that is a workaround for this
problem because the libraries you need on the system depend on the
modules you will use.
Does anyone have a good solution for this? Obviously it would be nice
if ansible went to python3 but I think they have stated clearly that
they are sticking with python2 for backwards compat with systems that
still need 2.4.
 - https://github.com/dustymabe/vagrantdirs/blob/master/f22/playbook.yml
More information about the devel