Public bug reported:
TL;DR: Ansible 2.5 is too old to manage any targeted hosts running
Python 3.8 or newer (Ubuntu 20.04 and higher) and lacking a python 2.x
install.
I have Ubuntu 18.04 on my office laptop. I installed the most recent
ansible from the repos on it and started developing ansible playbooks
for use on our network. I quickly encountered issues attempting to do
anything requiring python on the targeted hosts if those hosts are
Ubuntu 20.04 or newer.
Python 3.8 is the oldest version available for install on Ubuntu 20.04.
Ansible 2.5 is not compatible with Python 3.8 on targeted hosts, it
requires Python 3.7 or Python 2.x on the targeted hosts. I do not have
the political power here to install python 2.x on hosts that don't
already have it installed so that is not a viable solution.
Ansible 2.5 is using long-deprecated library calls that have been
removed in Python 3.8, which is the only version available for Ubuntu
20.04. More recent releases of Ansible have adjusted for the change in
the Python 3.8 libraries. These releases are not available in the 18.04
LTS repos.
Thus, version of ansible in 18.04 LTS is not able to manage targets
running Ubuntu 20.04 or newer. I have checked bionic-updates and
bionic-backports and there is no newer release of Ansible present.
We need a backport release of Ansible made available for Ubuntu 18.04 so
that 18.04 control hosts can manage Ubuntu 20.04 and newer targets.
I've resorted to purging the LTS ansible packages and installing Ansible
with pip3 instead, and using venv to run it on my personal login. This
really isn't a good solution to the problem, however.
Simple test:
ubuntu 18.04$ ansible all -m ping
where the hosts file ansible is reading contains a mix of Ubuntu 16.04,
18.04, and 20.04 targets.
I expect them to all respond with a 'pong' message.
I get 'pong' back from Ubuntu 18.04 and older hosts. For Ubuntu 20.04
and newer hosts, I get a stack trace out of python complaining about the
inability to identify the release and dist on the target.
** Affects: ansible (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1906710
Title:
Ansible 2.5 too old to handle Python 3.8 on Ubuntu 20.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ansible/+bug/1906710/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs