the condition is check for each item in "my_instances_config" *before* running the task.
So it doesn't make sense to use "result" there as it is registered *after* running the task.
>
> On Fri, 24 Jul 2020 at 12:34, Stefan Hornburg (Racke) <
ra...@linuxia.de <mailto:
ra...@linuxia.de>> wrote:
>
> On 7/24/20 8:59 AM, Rahul Kumar wrote:
> > 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
>
> Please share the relevant details about your playbook / task / inventory.
>
> Regards
> Racke
>
> >
> > --
> > 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