Hi Ansible Gurus,,
I have this output:
<myapp> (1, '\r\n{"msg": "service[component] - https://myip/myrest/v1/
fails to due to error 501 - None", "failed": true, "invocation":
{"module_args": {"url_password": null, "tasks": [{"name": null, "hostname":
"myapp", "timeout": "60", "my_post_action": "component", "operation":
"shut, "instance": "abc"}], "force": false, "homedir": null, "service":
null, "url": null, "force_basic_auth": false, "http_agent":
"ansible-httpget", "cluster": "homedir", "state": "present", "BaseUrl": "
https://myapp/myrest/api/v1", "url_username": null, "client_key": null,
"validate_certs": false, "client_cert": null, "use_proxy": true}}}\r\n',
'Shared connection to myapp closed.\r\n')
But when i put condition on a registered variable
when : result is not failed ,
it says :
The 'failed' test expects a dictionary\n Error how can i put this
condition then ?
Rahul
--
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/CAGH8rEyMSR7Y0UAED9mi6EiUC2r1WbC9UMF7ONRHSQAJ9yScQQ%40mail.gmail.com.