diff options
author | Martin Krizek <martin.krizek@gmail.com> | 2023-05-09 21:26:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 14:26:28 -0500 |
commit | 4008335f41d0645a544a6fd9031a1f2a19b6f82a (patch) | |
tree | 6bbc00ffc4598af139f921685465b12bbf1e778e /changelogs | |
parent | 55b0b6954553392bf43d0ebbd4e2be0f51b02df8 (diff) | |
download | ansible-4008335f41d0645a544a6fd9031a1f2a19b6f82a.tar.gz |
Account for overlays when interacting with Jinja envs (#80705) (#80717)
Instead of using Templar.environment in Templar.do_template for
accessing/mutating the environment, myenv local variable should be used
because it is the environment used for actual templating. It can either
point to Templar.environment or newly created environment overlay.
Fixes #80605
(cherry picked from commit 8cd95a8e664ccd634dc3a95642ef7ad41f007169)
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/fragments/80605-template-overlay-native-jinja.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/changelogs/fragments/80605-template-overlay-native-jinja.yml b/changelogs/fragments/80605-template-overlay-native-jinja.yml new file mode 100644 index 0000000000..75ed97170c --- /dev/null +++ b/changelogs/fragments/80605-template-overlay-native-jinja.yml @@ -0,0 +1,2 @@ +bugfixes: + - "Properly disable ``jinja2_native`` in the template module when jinja2 override is used in the template (https://github.com/ansible/ansible/issues/80605)" |