I’m trying to provision a Ubuntu 16.04 server machine. When running a playbook which has worked fine on Ubuntu 14.x and 15.x, it fails with this error:
You can’t see it, but this is me banging my face into my desk. No support for Python 3? It’s been out how long?
Sigh. The principal reason I prefer to use Ansible over Chef is that I DON’T need to install anything on the client to make it go. This release of Ubuntu is going to be everywhere shortly. Maybe Canonical dropping Python 2 from the distro is the wrong thing to have done, but that die is cast…
It’s coming, but there are a lot of hoops to jump to make Py3 work while continuing to support back to Python 2.4 in modules (eg, RHEL5 support). It sounds like RHEL will likely do the same for RHEL8, and others too… Life would be much easier if we could just say, Py2.6/2.7/3.4+, but we’d have at least as much hollering from the crowd that’s still supporting RHEL5 and other “legacy” distros.
We’re definitely not ignoring the problem- a lot of groundwork was laid for Py3 compat in 2.1 (on both control and module side), and it’ll likely be a major theme of 2.2.
Andreas, when I implemented this, I had to put a line in the section to use sudo for the installation, which makes sense, just wondering if you had achieved that another way , just curious.
I initially did these manually for testing, but this is obviously a much better solution for large scale roll outs, without having to update the AMI first.
Andreas, when I implemented this, I had to put a line in the section
to use sudo for the installation, which makes sense, just wondering
if you had achieved that another way , just curious.