mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
65be14e8b4
commit
f4172fb9da
2 changed files with 9 additions and 5 deletions
|
@ -590,15 +590,17 @@ class Play(object):
|
|||
included_become_vars[k] = become_vars[k]
|
||||
x[k] = become_vars[k]
|
||||
|
||||
if 'meta' in x:
|
||||
if x['meta'] == 'flush_handlers':
|
||||
results.append(Task(self, x))
|
||||
continue
|
||||
|
||||
task_vars = vars.copy()
|
||||
if original_file:
|
||||
task_vars['_original_file'] = original_file
|
||||
|
||||
if 'meta' in x:
|
||||
if x['meta'] == 'flush_handlers':
|
||||
if role_name and 'role_name' not in x:
|
||||
x['role_name'] = role_name
|
||||
results.append(Task(self, x, module_vars=task_vars, role_name=role_name))
|
||||
continue
|
||||
|
||||
if 'include' in x:
|
||||
tokens = split_args(str(x['include']))
|
||||
included_additional_conditions = list(additional_conditions)
|
||||
|
|
|
@ -52,6 +52,8 @@ class Task(object):
|
|||
if 'meta' in ds:
|
||||
self.meta = ds['meta']
|
||||
self.tags = []
|
||||
self.module_vars = module_vars
|
||||
self.role_name = role_name
|
||||
return
|
||||
else:
|
||||
self.meta = None
|
||||
|
|
Loading…
Reference in a new issue