Don't filter include tasks based on tags

Fixes #11320
pull/11681/head
James Cammarata 9 years ago
parent 46f74a0d69
commit 91519d1696

@ -310,7 +310,7 @@ class Block(Base, Become, Conditional, Taggable):
def evaluate_and_append_task(target): def evaluate_and_append_task(target):
tmp_list = [] tmp_list = []
for task in target: 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) tmp_list.append(task)
return tmp_list return tmp_list

Loading…
Cancel
Save