Bugzilla – Bug 1226167
Patch to ansible adds reference to undefined name.
Last modified: 2024-07-01 14:51:15 UTC
How to reproduce Ensure ansible version 2.9.27-150000.1.17.2 is installed. % echo "{{ 'foo' | from_yaml }}" > test.j2 % ansible all -i "localhost," -c local -m template -a "src=test.j2 dest=./test" Expected result Ansible creates file `test` with content “foo”. Actual result Ansible fails with: localhost | FAILED! => { "changed": false, "msg": "NameError: name 'yaml_load' is not defined" } Analysis File `/usr/lib/python3.6/site-packages/ansible/plugins/filter/core.py` at line 222 refers to name `yaml_load` which is not defined. The reference was added by the following patch: https://build.opensuse.org/projects/SUSE:SLE-15-SP5:Update/packages/ansible/files/0001-Ensure-that-unsafe-is-more-difficult-to-lose-stable-.patch?expand=1