raiseAnsibleError("Inventory script (%s) had an execution error: %s"%(filename,stderr))
self.data=stdout
# make sure script output is unicode so that json loader will output
# unicode strings itself
try:
self.data=to_unicode(stdout,errors="strict")
exceptExceptionase:
raiseAnsibleError("inventory data from {0} contained characters that cannot be interpreted as UTF-8: {1}".format(to_str(self.filename),to_str(e)))
# see comment about _meta below
self.host_vars_from_top=None
self._parse(stderr)
@ -78,8 +84,6 @@ class InventoryScript:
sys.stderr.write(err+"\n")
raiseAnsibleError("failed to parse executable inventory script results from {0}: data needs to be formatted as a json dict".format(to_str(self.filename)))
raiseAnsibleParserError("Include tasks should not specify tags in more than one way (both via args and directly on the task)",
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",
obj=included_file._task._ds)
display.deprecated("You should not specify tags in the include parameters. All tags should be specified using the task-level option")