ansible in Fedora 23+ (python3)
dusty at dustymabe.com
Wed Oct 14 16:41:13 UTC 2015
On Wed, Oct 14, 2015 at 11:07:42AM -0400, Colin Walters wrote:
> On Tue, Oct 13, 2015, at 10:21 PM, Dusty Mabe wrote:
> > 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.
> Sounds like you're talking about the Cloud Base; this is not
> an issue for the Atomic Host; see:
I am talking about cloud base, but don't be so fast to assume Atomic
is OK because it has python2. Arguably Atomic is in a worse position.
Part of this email chain is to explain how just installing python2
isn't going to solve the problem..
For example, if I simply want to place a file on the host:
- name: write .bashrc
template: src=/home/dustymabe/.bashrc dest=/root/.bashrc
I end up with:
msg: Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!
Another example: I want to start a docker container:
- name: start skydns
docker_api_version: 1.18 # Not sure why this is needed
I end up with:
msg: `docker-py` doesn't seem to be installed, but is required for the Ansible Docker module.
Even though the python3 versions of those libraries are in the system
it doesn't work. For atomic there is no way to workaround this either.
More information about the devel