# then we create a temporary set of vars to ensure the variable reference is unique
temp_vars=b._task_include.vars.copy()
temp_vars.update(included_file._args.copy())
# pop tags out of the include args, if they were specified there, and assign
# them to the include. If the include already had tags specified, we raise an
# error so that users know not to specify them both ways
tags=temp_vars.pop('tags',[])
ifisinstance(tags,string_types):
tags=[tags]
iflen(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)",obj=included_file._task._ds)
self._display.deprecated("You should not specify tags in the include parameters. All tags should be specified using the task-level option")