Fix handler flushing to match how v1 worked

Also adds meta tasks to the list of tasks excluded from tag filtering

Fixes #11574
This commit is contained in:
James Cammarata 2015-07-22 11:20:50 -04:00
commit 4b6525fb58
2 changed files with 16 additions and 2 deletions

View file

@ -322,7 +322,7 @@ class Block(Base, Become, Conditional, Taggable):
def evaluate_and_append_task(target):
tmp_list = []
for task in target:
if task.action == 'include' or task.evaluate_tags(play_context.only_tags, play_context.skip_tags, all_vars=all_vars):
if task.action in ('meta', 'include') or task.evaluate_tags(play_context.only_tags, play_context.skip_tags, all_vars=all_vars):
tmp_list.append(task)
return tmp_list