Package: ansible-core
Version: 2.19.0~beta4-1
Severity: important
Forwarded: https://github.com/ansible/ansible/issues/85202
X-Debbugs-Cc: [email protected]
For the past few years, I have wrote thousands of lines of code to build
complex playbooks. Since Jinja filters are not powerful enough for complex
transformations and it does not allow generator expressions, many of these
templates need to use hacks such as these:
```yaml
test: |-
{% set result = [] %}
{% for key in data %}
{% if <condition> %}
{% set _ = result.append(key) %}
{% endif %}
{% endfor %}
{{ result }}
```
The changes introduced in #84621 broke this by disallowing access to methods
with known side-effects, which seems like a good idea, but there was no
deprecation period and there is is no way to disable this change temporarily.
This means that 2.19 will break all my code, and it will take me months to
rewrite all those templates.. If I find a way to do it with the severely
limited jinja language!
I really don't think Trixie should ship with a version of ansible that will
cause so much headache to users. This is still a beta release, and upstream is
still receiving bugs related to the breaking changes they introduced. Please
consider rolling it back to 2.18.
-- System Information:
Debian Release: 13.0
APT prefers testing
APT policy: (500, 'testing'), (50, 'unstable'), (10, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.27-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages ansible-core depends on:
ii openssh-client 1:10.0p1-5
ii python3 3.13.3-1
ii python3-cryptography 43.0.0-3
ii python3-dnspython 2.7.0-1
ii python3-httplib2 0.22.0-1
ii python3-jinja2 3.1.6-1
ii python3-netaddr 1.3.0-1
ii python3-packaging 25.0-1
ii python3-paramiko 3.5.1-2
ii python3-resolvelib 1.1.0-1
ii python3-yaml 6.0.2-1+b2
Versions of packages ansible-core recommends:
ii ansible 12.0.0~a2+dfsg-1
ii python3-argcomplete 3.6.2-1
ii python3-jmespath 1.0.1-1
pn python3-kerberos <none>
pn python3-libcloud <none>
pn python3-passlib <none>
pn python3-selinux <none>
pn python3-winrm <none>
ii python3-xmltodict 0.13.0-1
Versions of packages ansible-core suggests:
pn cowsay <none>
ii sshpass 1.10-0.1
-- no debconf information