Don't filter include tasks based on tags

Fixes #11320
This commit is contained in:
James Cammarata 2015-07-21 12:37:22 -04:00
parent 46f74a0d69
commit 91519d1696

View file

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