Connecting to a remote database

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