Fix tag handling on meta:flush_handlers tasks

Fixes #10758
pull/10985/head
James Cammarata 10 years ago
parent 8f4c97fdbe
commit 763f44a52b

@ -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…
Cancel
Save