# jinja2 warnings

**URL:** <https://forum.ansible.com/t/jinja2-warnings/30507>\
**Category:** Ansible Project\
**Created:** [June 6, 2019, 6:34pm UTC](https://forum.ansible.com/t/jinja2-warnings/30507 "2019-06-06T18:34:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Bidwell](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Post date:** [June 6, 2019, 6:34pm UTC](https://forum.ansible.com/t/jinja2-warnings/30507/1 "2019-06-06T18:34:05Z")

</div>

Hi all,

After the latest ansible upgrade, I’ve started seeing these alerts when running playbooks:

[WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ rhel7stig\_complexity\_high or rhel7stig\_audit\_complex }}

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [June 6, 2019, 7:23pm UTC](https://forum.ansible.com/t/jinja2-warnings/30507/2 "2019-06-06T19:23:32Z")

</div>

Without the code this may and may not be a bug.  
[https://github.com/ansible/ansible/issues/56830](https://github.com/ansible/ansible/issues/56830)

If you have  
&nbsp;&nbsp;when: "{{ rhel7stig\_complexity\_high or rhel7stig\_audit\_complex }}"

you need to remove the curly brackets.
