This website requires JavaScript.
Explore
Cloud
Chat
CI/CD
Help
Sign in
cmueller
/
ansible
Watch
1
Star
0
Fork
You've already forked ansible
0
Code
Issues
Pull requests
Projects
Releases
Wiki
Activity
4627c30b2e
ansible
/
test
/
integration
/
targets
/
template
/
templates
/
72262-vars.j2
2 lines
37 B
Text
Raw
Normal View
History
Unescape
Escape
Local vars should have highest precedence in AnsibleJ2Vars (#72830) Ability to add local variables into AnsibleJ2Vars was added in 18a9eff11f0a6e51b17405ce596bd9ff7e676320 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
{% set test = "I'm test variable" %}
Reference in a new issue
Copy permalink