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
Martin Krizek 65fdc41fb1
Local vars should have highest precedence in AnsibleJ2Vars (#72830) (#73369)
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

(cherry picked from commit a2af8432f3)
5 years ago
..
custom_tasks Clean up various integration tests. (#60613) 6 years ago
files Allow specifying the output encoding in the template module (#42171) 8 years ago
meta test - add setup target that creates the nobody user (#52750) 7 years ago
role_filter Revert "Speed up VariableManager by preserving Templar state. (#45572)" (#59280) 7 years ago
tasks Emit proper error for `x in y` when y is undefined (#70990) (#71012) 5 years ago
templates Local vars should have highest precedence in AnsibleJ2Vars (#72830) (#73369) 5 years ago
vars
6653.yml Local vars should have highest precedence in AnsibleJ2Vars (#72830) (#73369) 5 years ago
72262.yml Local vars should have highest precedence in AnsibleJ2Vars (#72830) (#73369) 5 years ago
72615.yml Local vars should have highest precedence in AnsibleJ2Vars (#72830) (#73369) 5 years ago
aliases enable template target integration tests on rhel8 beta (#48940) 7 years ago
ansible_managed.cfg Fix when template paths contain non-ascii chars and using the path in ansible_managed 8 years ago
ansible_managed.yml Clean up various integration tests. (#60613) 6 years ago
corner_cases.yml safe_eval fix (#57188) 7 years ago
custom_template.yml dataloader: check exact value of dir (#52021) 7 years ago
filter_plugins.yml Revert "Speed up VariableManager by preserving Templar state. (#45572)" (#59280) 7 years ago
runme.sh Local vars should have highest precedence in AnsibleJ2Vars (#72830) (#73369) 5 years ago
template.yml
undefined_var_info.yml Provide more information in AnsibleUndefinedVariable (#71666) (#71877) 5 years ago
unused_vars_include.yml Prevent templating unused variables for {%include%} (#68749) 5 years ago