mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-10 18:34:03 -07:00
Make include_x inheritance more congruent with docs (#32769)
* draft making tags congruent with include_x * remove ability to 'inline tags' for new inc keys * generic inheritance * fix typo * pepe
This commit is contained in:
parent
e499bccbaa
commit
8e6ebae8bd
6 changed files with 17 additions and 5 deletions
|
@ -50,6 +50,8 @@ class TaskInclude(Task):
|
|||
@staticmethod
|
||||
def load(data, block=None, role=None, task_include=None, variable_manager=None, loader=None):
|
||||
t = TaskInclude(block=block, role=role, task_include=task_include)
|
||||
if t.action == 'include_task':
|
||||
t._inheritable = False
|
||||
return t.load_data(data, variable_manager=variable_manager, loader=loader)
|
||||
|
||||
def copy(self, exclude_parent=False, exclude_tasks=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue