This is unsafe and we debated re-adding it to the v2/2.0 codebase,
however it is a common-enough feature that we will simply mark it
as deprecated for now and remove it at some point in the future.
Fixes#11718
raiseAnsibleParserError("this task '%s' has extra params, which is only allowed in the following modules: %s"%(action,", ".join(RAW_PARAM_MODULES)),obj=self._task_ds)
templar=Templar(loader=None)
raw_params=args.pop('_raw_params')
iftemplar._contains_vars(raw_params):
args['_variable_params']=raw_params
else:
raiseAnsibleParserError("this task '%s' has extra params, which is only allowed in the following modules: %s"%(action,", ".join(RAW_PARAM_MODULES)),obj=self._task_ds)