# AWX and ANSIBLE\_JINJA2\_NATIVE=true

**URL:** <https://forum.ansible.com/t/awx-and-ansible-jinja2-native-true/4220>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [March 5, 2024, 3:50pm UTC](https://forum.ansible.com/t/awx-and-ansible-jinja2-native-true/4220 "2024-03-05T15:50:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabeer](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/fabeer/32/7591_2.png) [@fabeer](https://forum.ansible.com/u/fabeer)\
**Post date:** [March 5, 2024, 3:50pm UTC](https://forum.ansible.com/t/awx-and-ansible-jinja2-native-true/4220/1 "2024-03-05T15:50:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sirjaren](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sirjaren](https://forum.ansible.com/u/sirjaren)\
**Post date:** [March 5, 2024, 5:06pm UTC](https://forum.ansible.com/t/awx-and-ansible-jinja2-native-true/4220/2 "2024-03-05T17:06:43Z")

</div>

You can set environment variables via AWX Operator to have your EE’s set this value, eg:

```yaml
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.

---

<div class="post-metadata">

**Author:** ![fabeer](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/fabeer/32/7591_2.png) [@fabeer](https://forum.ansible.com/u/fabeer)\
**Post date:** [March 14, 2024, 9:26am UTC](https://forum.ansible.com/t/awx-and-ansible-jinja2-native-true/4220/3 "2024-03-14T09:26:13Z")

</div>

Thanks.  
I solved it by inserting the definition inside “setting”-\>Job-\>Job settings-\>Extra Environment Variables

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [April 13, 2024, 9:26am UTC](https://forum.ansible.com/t/awx-and-ansible-jinja2-native-true/4220/4 "2024-04-13T09:26:54Z")

</div>

Closed on April 13, 2024, 9:26am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
