evaluate includes for skipped tags

cannot evaluate for include tags as underlying tasks might have them, but skips override so this should be a performance boost
This commit is contained in:
Brian Coca 2015-11-15 07:51:36 -08:00
parent a766044b26
commit e174247734

View file

@ -340,7 +340,9 @@ class Block(Base, Become, Conditional, Taggable):
for task in target:
if isinstance(task, Block):
tmp_list.append(evaluate_block(task))
elif task.action in ('meta', 'include') or task.evaluate_tags(play_context.only_tags, play_context.skip_tags, all_vars=all_vars):
elif task.action == 'meta' \
or (task.action == 'include' and task.evaluate_tags([], play_context.skip_tags, all_vars=allvars)) \
or task.evaluate_tags(play_context.only_tags, play_context.skip_tags, all_vars=all_vars):
tmp_list.append(task)
return tmp_list