Pkg Facts

pkg.PkgPackages

host.get_fact(PkgPackages, )

rns a dict of installed pkg packages:

ode:: python

{

“package_name”: [“version”],

}