# data inserts into mongodb

**URL:** <https://forum.ansible.com/t/data-inserts-into-mongodb/19700>\
**Category:** Ansible Project\
**Created:** [November 5, 2015, 10:57pm UTC](https://forum.ansible.com/t/data-inserts-into-mongodb/19700 "2015-11-05T22:57:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sandy](https://forum.ansible.com/u/sandy)\
**Post date:** [November 5, 2015, 10:57pm UTC](https://forum.ansible.com/t/data-inserts-into-mongodb/19700/1 "2015-11-05T22:57:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Alex\_Leonhardt](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@Alex\_Leonhardt](https://forum.ansible.com/u/Alex_Leonhardt)\
**Post date:** [November 6, 2015, 7:04am UTC](https://forum.ansible.com/t/data-inserts-into-mongodb/19700/2 "2015-11-06T07:04:33Z")

</div>

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](https://docs.ansible.com/ansible/developing_plugins.html#callbacks)

Hope it helps,  
Alex
