You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
4 years ago
..
6653-include.j2 Local vars should have highest precedence in AnsibleJ2Vars (#72830) 4 years ago
6653.j2 Local vars should have highest precedence in AnsibleJ2Vars (#72830) 4 years ago
72262-included.j2 Local vars should have highest precedence in AnsibleJ2Vars (#72830) 4 years ago
72262-vars.j2 Local vars should have highest precedence in AnsibleJ2Vars (#72830) 4 years ago
72262.j2 Local vars should have highest precedence in AnsibleJ2Vars (#72830) 4 years ago
72615-macro-nested.j2 Local vars should have highest precedence in AnsibleJ2Vars (#72830) 4 years ago
72615-macro.j2 Local vars should have highest precedence in AnsibleJ2Vars (#72830) 4 years ago
72615.j2 Local vars should have highest precedence in AnsibleJ2Vars (#72830) 4 years ago
bar
café.j2
encoding_1252.j2 Allow specifying the output encoding in the template module (#42171) 6 years ago
foo.j2
foo2.j2
foo3.j2
for_loop.j2
for_loop_include.j2 Fix jinja2>=2.9 nested include vars (#35099) 7 years ago
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 template: add additional variable for dest path (#52015) 6 years ago
trim_blocks.j2
unused_vars_include.j2
unused_vars_template.j2