I'm using a module which returns some information in the module's register
stderr variable when the module encounters an issue.
Using - debug: var=sql_delete.stderr returns:
ok: [ibmi01] => {
"sql_delete.stderr": {
"ccsid": "1146",
"curuser": "GROBINSO",
"dftccsid": "1146",
"error": "*** error DELETE FROM ANSIBLIB.QCUSTCDT WHERE CDTLMT <
9999.00",
"jobipc": "*na",
"jobipcskey": "FFFFFFFF",
"jobname": "QSQSRVR",
"jobnbr": "002988",
"jobuser": "QUSER",
"paseccsid": "0",
"syslibl": "QSYS QSYS2 QHLPSYS QUSRSYS",
"usrlibl": "QGPL QTEMP",
"version": "XML Toolkit 1.9.2",
"xmlhint": "02000:100:Row not found for DELETE.",
"xmlhint1": "02000:100:Row not found for DELETE."
}
}
I want to retrieve the value in the xmlhint item.
When i try and access that value by using:
sql_delete.stderr.xmlhint
I get a variable not found error.
I've tried from_json, dict2items and dict2list but can't seem to reference
the xmlhint, or any other key values, within stderr.
How do I reference the xmlhint value in sql_delete.stderr?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/64bd3ccd-530b-4c39-8c14-bd765accbcc4n%40googlegroups.com.