ansible/test/units/playbook
Daniel Miranda a7abe4be19 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

(cherry picked from commit 57f4a9885e)
2016-11-29 11:26:17 -05:00
..
role Make sure include_role inherit variables from parent role (#18627) 2016-11-29 11:26:17 -05:00
__init__.py
test_attribute.py
test_block.py
test_play.py Switch tests from sudo to become. (#17694) 2016-09-21 13:58:35 -07:00
test_play_context.py updated pbrun test to match expected output 2016-10-17 14:43:02 -04:00
test_playbook.py
test_role.py
test_taggable.py
test_task.py