run playbook in Ansible v2 with python

Hi All,

I am trying to invoke ansible playbook V2 from python modules.

I am following below link:

(1) http://docs.ansible.com/ansible/dev_guide/developing_api.html

(2) http://stackoverflow.com/questions/37783145/how-to-run-playbook-api-in-ansible-v2

Can some one please help me/provide links about how to invoke playbook.yml with custom ResultCallback
so that we can log the errors/failure so that i can declare as failure in my python module.

Thanks
Eswar Rao