# Connecting to a remote database

**URL:** <https://forum.ansible.com/t/connecting-to-a-remote-database/19382>\
**Category:** Ansible Project\
**Created:** [September 29, 2015, 11:16pm UTC](https://forum.ansible.com/t/connecting-to-a-remote-database/19382 "2015-09-29T23:16:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RaviCharan\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@RaviCharan\_Reddy](https://forum.ansible.com/u/RaviCharan_Reddy)\
**Post date:** [September 29, 2015, 11:16pm UTC](https://forum.ansible.com/t/connecting-to-a-remote-database/19382/1 "2015-09-29T23:16:03Z")

</div>

Hi,

Is it possible to query a remote data base and export results into a file using ansible.

How can we access a remote data base using ansible ?

**Thanks & Regards,**  
**RaviCharan**
