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/playbook
Daniel Miranda 57f4a9885e Make sure include_role inherit variables from parent role (#18627)
* Make sure include_role inherit variables from parent role

Setting the parent of task blocks generated by include_role after they
have been produced is not sufficient - it means the tasks don't have the
correct dependency chain set afterwards, and therefore, don't properly
inherit variables from outer roles.

In addition to manually setting the parents, pass the dep_chain when
compiling the role, such that variables are correctly imported.

Fixes #18540.

* Add tests for include_role

* Fix include_role variable inheritance for multiple parent levels
8 years ago
..
role With role params also keep special params in the ds as well as params 8 years ago
__init__.py Convert playbook basedir into unicode at the borders 8 years ago
attribute.py Selectively assign the getter for better performance 8 years ago
base.py Look for _get_parent_attribute method in both src and dst dict 8 years ago
become.py Some further cleanup in the meta branch 8 years ago
block.py Add `name` field for Blocks 8 years ago
conditional.py Rework how the Conditional class deals with undefined vars 8 years ago
handler.py FEATURE: handler listeners 8 years ago
handler_task_include.py Fixes #15915: New HandlerTaskInclude Class which can run TaskIncludes inside Handlers 8 years ago
helpers.py Don't copy the parent block of TaskIncludes when loading statically 8 years ago
included_file.py Move tasks/blocks to a single parent model 8 years ago
loop_control.py implemented loop pausing (#17289) 8 years ago
play.py make default strategy configurable (#18394) 8 years ago
play_context.py adds two new plugins that use ansible-connection for persistence (#18572) 8 years ago
playbook_include.py Don't copy the parent block of TaskIncludes when loading statically 8 years ago
role_include.py Make sure include_role inherit variables from parent role (#18627) 8 years ago
taggable.py Migrate basestring to a python3 compatible type (#17199) 8 years ago
task.py Performance improvement using in-operator on dicts 8 years ago
task_include.py Several fixes for includes 8 years ago
vars.py Making the switch to v2 10 years ago
vars_file.py Making the switch to v2 10 years ago