Package: ansible Version: 2.9.16+dfsg-1.1 Severity: important I set up a fresh bullseye host (upgraded from a base buster installation) and it has python3.7 and python3.9 installed. I think that python3.7 is left over from buster and should probably be removed from the host (apt-get autoremove does so). However, I expect this is a common scenario after an upgrade.
if I run my base playbook in check mode it tells me to install python3-apt, but that is already installed on the target. The reason is that python3-apt in bullseye only provides the module for python3.9, but ansible tries to run python3.7. The following patch fixes this: --- /usr/lib/python3/dist-packages/ansible/config/base.yml.bak 2021-02-19 22:34:00.363529032 +0000 +++ /usr/lib/python3/dist-packages/ansible/config/base.yml 2021-02-19 22:34:08.987398189 +0000 @@ -1462,6 +1462,7 @@ name: Ordered list of Python interpreters to check for in discovery default: - /usr/bin/python + - python3.9 - python3.7 - python3.6 - python3.5 Something similar is available upstream: <https://github.com/ansible/ansible/commit/c986cbb9961bfaedf1a6ae7f0c2e34be26d9ab12> Please consider applying this fix in the version of ansible shipped with bullseye so that bullseye hosts can manage bullseye hosts out of the box. (I'd also suggest moving /usr/bin/python3 up that list so that this doesn't recur for future python 3 releases.) -- System Information: Debian Release: bullseye/sid APT prefers testing-debug APT policy: (500, 'testing-debug'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-3-amd64 (SMP w/4 CPU threads) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages ansible depends on: ii openssh-client 1:8.4p1-3 ii python3 3.9.1-1 ii python3-cryptography 3.3.1-1 ii python3-distutils 3.9.1-2 ii python3-dnspython 2.0.0-1 ii python3-httplib2 0.18.1-3 ii python3-jinja2 2.11.2-1 ii python3-netaddr 0.7.19-4 ii python3-paramiko 2.7.2-1 ii python3-yaml 5.3.1-3+b1 Versions of packages ansible recommends: pn python3-argcomplete <none> pn python3-jmespath <none> pn python3-kerberos <none> pn python3-libcloud <none> pn python3-selinux <none> pn python3-winrm <none> pn python3-xmltodict <none> Versions of packages ansible suggests: pn cowsay <none> ii sshpass 1.09-1+b1 -- no debconf information

