AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
13.5k
stars
3.34k
forks
source link
AWX task fail with AnsibleUnsafeBytes for yaml collapsed string #15161
[X] I understand that AWX is open source software provided for free and that I might not receive a timely response.
[X] I am NOT reporting a (potential) security vulnerability. (These should be emailed to security@ansible.com instead.)
Bug Summary
A yaml collapsed string with jinja fails with error AnsibleUnsafeBytes.__format__. unsupported format string passed to AnsibleUnsafeBytes.__format__ when it should not have for a string. this task does not fail when run via CLI.
Please confirm the following
security@ansible.com
instead.)Bug Summary
A yaml collapsed string with jinja fails with error
AnsibleUnsafeBytes.__format__. unsupported format string passed to AnsibleUnsafeBytes.__format__
when it should not have for a string. this task does not fail when run via CLI.AWX version
23.9.0
Select the relevant components
Installation method
kubernetes
Modifications
no
Ansible version
2.16.1
Operating system
k3s 1.29
Web browser
No response
Steps to reproduce
use the foollowing task in play:
where:
Expected results
A yaml collapsed string
|-
or>-
by never return errorAnsibleUnsafeBytes.__format__. unsupported
. when the type is clearly a yaml stringActual results
error:
Additional information
No response