How to parse a XML response in ansible?
问题 I'm running the panos_op ansible module and struggling to parse the output. ok: [localhost] => { "result": { "changed": true, "failed": false, "msg": "Done", "stdout": "{\"response\": {\"@status\": \"success\", \"result\": \"no\"}}", "stdout_lines": [ "{\"response\": {\"@status\": \"success\", \"result\": \"no\"}}" ], "stdout_xml": "<response status=\"success\"><result>no</result></response>" } } This is as close as I can get to assigning the value for "result". ok: [localhost] => { "result