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/lib/ansible
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
..
cli Python 3 fixes for ansible-doc. 2016-11-03 16:09:24 -07:00
compat Move py34 mock_open compat to compat/test/mock (#17157) 2016-08-19 18:11:24 -04:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors Add error info if tabs are found in the yaml (#18343) 2016-11-08 11:43:08 -05:00
executor fixed issue with when/with error deferment 2016-11-23 13:43:34 -05:00
galaxy Cast input role version to string before comparing to available versions (#18269) 2016-10-31 21:07:38 -04:00
inventory Properly sort groups by name as well as depth when getting vars 2016-11-18 22:57:52 -06:00
module_utils Fix traceback in atomic_move (#18649) 2016-11-28 15:19:42 -05:00
modules Update submodule refs. 2016-11-28 13:22:34 -08:00
parsing Fix 'ansible-vault edit' crash on changed nonascii 2016-11-16 15:14:07 -05:00
playbook Make sure include_role inherit variables from parent role (#18627) 2016-11-28 17:54:27 -05:00
plugins adds two new plugins that use ansible-connection for persistence (#18572) 2016-11-28 12:49:40 -05:00
template always template when called from template (#18490) 2016-11-15 15:16:46 -05:00
utils Remove duplicated 'timeout' doc (#18657) 2016-11-28 13:15:20 -05:00
vars ansible_playbook_python (#18530) 2016-11-23 16:30:46 -05:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py adds config option to auto add keys when using paramiko (#18598) 2016-11-28 11:31:12 -05:00
release.py Bumping devel version to 2.3.0 2016-10-03 11:46:31 -05:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00