Things are going well if I do a fresh install with python venv:
python3 -m venv venv
./venv/bin/pip3 install ansible
./venv/bin/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
localhost | SUCCESS => {
"msg": [
"10.1.1.1"
]
}
So it seems the ubuntu package uses outdated ansible_utils.
--
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