Deb Facts

deb.DebPackage

host.get_fact(DebPackage, name)

Returns information on a .deb archive or installed package.

deb.DebPackages

host.get_fact(DebPackages)

Returns a dict of installed dpkg packages:

{
    'package_name': ['version'],
}