Results after processing ansible script using Python

Hi,

I am trying to build a system for automated installations using python ansible. I am able to run the example program. But, I need to get feedback from the server to know whether my installation succeeded or failed while running, If failed? then what was the reason for failure.

I need this urgently for a demo. I am using ansible 2.0.0.2 and API = 2.0

Regards,
_Shreyas.