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/lib/ansible
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
5 years ago
..
_vendor Rename to ansible-core (#72594) 5 years ago
cli Shadow input for encrypt_string by default unless asked (fixes #71618) (#73263) 5 years ago
collections saner path dir management (#72648) 5 years ago
compat Updated bundled libraries (#70418) 6 years ago
config undeprecated hash_merge setting (#73328) 5 years ago
errors Fix YAML error message when error is at the end of the file (#73241) 5 years ago
executor Consolidate filters/tests handling into JinjaPluginIntercept (#71463) 5 years ago
galaxy Galaxy - make versions list consistent across versions (#72932) 5 years ago
inventory fix inventory source parse error handling (#73160) 5 years ago
module_utils Let `command` always return stdout & stderr (#73004) 5 years ago
modules Update documentation for "contains" parameter (#73107) 5 years ago
parsing vault: Read stdin data as binary on python3 (#52229) 5 years ago
playbook Consolidate filters/tests handling into JinjaPluginIntercept (#71463) 5 years ago
plugins Consolidate filters/tests handling into JinjaPluginIntercept (#71463) 5 years ago
template Local vars should have highest precedence in AnsibleJ2Vars (#72830) 5 years ago
utils Allow restricting config values to enumerated list (#73162) 5 years ago
vars Fix missing ansible.builtin FQCNs in hardcoded action names (#71824) 5 years ago
__init__.py transparent downstream vendoring (#69850) 6 years ago
constants.py Allow restricting config values to enumerated list (#73162) 5 years ago
context.py Become plugins (#50991) 7 years ago
keyword_desc.yml Document and warn when max_fail and free are used (#72616) 5 years ago
release.py Bump devel to 2.11.0 (#70121) 6 years ago