# error so that users know not to specify them both ways
# error so that users know not to specify them both ways
tags=temp_vars.pop('tags',[])
tags=temp_vars.pop('tags',[])
ifisinstance(tags,string_types):
ifisinstance(tags,string_types):
tags=[tags]
tags=tags.split(',')
iflen(tags)>0:
iflen(tags)>0:
iflen(b._task_include.tags)>0:
iflen(b._task_include.tags)>0:
raiseAnsibleParserError("Include tasks should not specify tags in more than one way (both via args and directly on the task). Mixing tag specify styles is prohibited for whole import hierarchy, not only for single import statement",
raiseAnsibleParserError("Include tasks should not specify tags in more than one way (both via args and directly on the task). Mixing tag specify styles is prohibited for whole import hierarchy, not only for single import statement",