1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/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
2016-11-28 17:54:27 -05:00
..
role Make sure include_role inherit variables from parent role (#18627) 2016-11-28 17:54:27 -05:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
test_attribute.py Use rich comparisons for Attribute and FieldAttribute 2015-09-02 12:33:42 +03:00
test_block.py Fix uninitialized variable in deserialize method (#18037) 2016-10-20 22:54:16 -04:00
test_play.py Switch tests from sudo to become. (#17694) 2016-09-21 13:58:35 -07:00
test_play_context.py Mcsalgado's change to use shlex.quote instead of pipes.quote (#18534) 2016-11-17 13:18:29 -08:00
test_playbook.py Added tests for taggable module 2015-07-08 10:22:33 -04:00
test_taggable.py Added tests for taggable module 2015-07-08 10:22:33 -04:00
test_task.py Making the switch to v2 2015-05-03 21:47:26 -05:00