Hi need to run a template with the the value of ANSIBLE_JINJA2_NATIVE=true to fix a problem with URI module.
I need to execute a POST with variables created with the set_fact command that add double quotes (which must not be present).
From CLI I solved it by prefixing ANSIBLE_JINJA2_NATIVE=True to the ansible-playbook command
You can set environment variables via AWX Operator to have your EE’s set this value, eg:
ee_extra_env: |-
- name: ANSIBLE_JINJA2_NATIVE
value: True
Once you apply this change and after AWX Operator reconciles, jobs you run from AWX will have this environment variable set and will be passed to ansible-playbook
via ansible-runner
in your jobs.
Thanks.
I solved it by inserting the definition inside “setting”->Job->Job settings->Extra Environment Variables
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.