ansible/test/integration/targets/template/templates
Martin Krizek a2af8432f3
Local vars should have highest precedence in AnsibleJ2Vars (#72830)
Ability to add local variables into AnsibleJ2Vars was added in
18a9eff11f to fix #6653. Local variables
are added using ``AnsibleJ2Vars.add_locals()`` method when creating a
new context - typically when including/importing a template with
context. For that use case local template variables created using
``set`` should override variables from higher contexts - either from the
play or any parent template, or both; Jinja behaves the same way.

Also removes AnsibleJ2Vars.extras instance variable which is not used.

Also adds missing test for #6653.

Fixes #72262
Fixes #72615

ci_complete
2021-01-26 11:37:56 +01:00
..
6653-include.j2
6653.j2
72262-included.j2
72262-vars.j2
72262.j2
72615-macro-nested.j2
72615-macro.j2
72615.j2
bar
café.j2
encoding_1252.j2
foo.j2
foo2.j2
foo3.j2
for_loop.j2
for_loop_include.j2
for_loop_include_nested.j2
import_as.j2
import_as_with_context.j2
import_with_context.j2
lstrip_blocks.j2
parent.j2
qux
short.j2
subtemplate.j2
template_destpath_test.j2
trim_blocks.j2
unused_vars_include.j2
unused_vars_template.j2