I am using rest info module to fetch details of saml-sp authentication on ONTAP clusters but the module fails as it is not configured as of now, output is like below:
fatal: [vmu81181.pcs.nl.eu.abnamro.com]: FAILED! => {"changed": false, "msg": {"code": "4", "message": "entry doesn't exist"}}
Now I want to use rescue module to do some more logic when ode fails with this message "entry doesn't exist". I can run rescue fine but not with specific error message like here "entry doesn't exist". I don't want to run rescue task for all the failures as they can be genuine failures also.