Connecting to a remote Database

Hi,

I have a remote database and I need to fetch results from the database.

Is it possible to achieve this using ansible playbooks ?

Thanks & Regards,
RaviCharan