Ansible and Foreman Software Facts

Problem: Software Reporting not available trough ansible

Expected outcome: Facts show installed Software especially what user installed manually

Foreman and Proxy versions: 1.18

Hi folks,
Is there any way to get package information through ansible as facts?

I m not an ansible expert but I think you ll have to implement it as custom facts