Pkg Facts

pkg_packages

host.fact.pkg_packages

Returns a dict of installed pkg packages:

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