1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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