how can I use ansible openssl_certificate module to gather facts about installed ssl certificates on application servers?

Dear ansible friends here:

I got a request to collect the facts like expiration date, issuer for each ssl certificates on linux servers.

I plan to use openssl_certificate module and use the return values to pop out the records into csv file. But the example doesn’t list how to gather all the facts, can anyone here help me with this ?

if this module is not the best module, which one is good for me. I got a Bach script to do it,but could like to use ansiable to run on multiple servers.

thanks.

jason