Public bug reported:
Hi,
I've noticed that my Ansible scripts don't work anymore since upgrading
my desktop to 26.04. I'm not absolutely shure, when they broke, but I do
believe, 25.10 was still working.
Boiled down example:
ansible -m debug -i "localhost," -a "msg={{ ['10.1.1.1','10.2.2.2'] |
select('ansible.utils.in_any_network',['10.1.0.0/16'] )}}" localhost
Under 24.04 the correct output (ansible 2.16.3) is
localhost | SUCCESS => {
"msg": [
"10.1.1.1"
]
}
but on 26.04 (ansible 2.20.1) the wrong output is
[WARNING]: Deprecation warnings can be disabled by setting
`deprecation_warnings=False` in ansible.cfg.
[DEPRECATION WARNING]: The `ansible.module_utils.common._collections_compat`
module is deprecated. This feature will be removed from ansible-core version
2.24. Use `collections.abc` from the Python standard library instead.
[DEPRECATION WARNING]: Importing 'to_text' from 'ansible.module_utils._text' is
deprecated. This feature will be removed from ansible-core version 2.24. Use
ansible.module_utils.common.text.converters instead.
[DEPRECATION WARNING]: Importing 'to_native' from 'ansible.module_utils._text'
is deprecated. This feature will be removed from ansible-core version 2.24. Use
ansible.module_utils.common.text.converters instead.
localhost | SUCCESS => {
"msg": []
}
Note the different result (beyond the warnings)
regards
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: ansible 13.1.0+dfsg-1ubuntu1
ProcVersionSignature: Ubuntu 7.0.0-15.15-generic 7.0.0
Uname: Linux 7.0.0-15-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Thu May 28 01:37:05 2026
InstallationDate: Installed on 2025-08-17 (283 days ago)
InstallationMedia: Kubuntu 25.04 "Plucky Puffin" - Release amd64 (20250417)
PackageArchitecture: all
SourcePackage: ansible
UpgradeStatus: Upgraded to resolute on 2026-05-20 (7 days ago)
** Affects: ansible (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2154398
Title:
Ansible functions broken after upgrade to Ubuntu 26.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ansible/+bug/2154398/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs