data inserts into mongodb

Hi,
Is there a way to implement the interface methods with database inserts to mongodb instead of outputs to files/stdout.
Can someone provide the steps to the implement this functionality through ansible.

You probably want to start looking at the Callback modules and how to create your own … someone may already have created one so check out github for default included and forks, etc.

https://docs.ansible.com/ansible/developing_plugins.html#callbacks

Hope it helps,
Alex