Pip

pip_packages

host.fact.pip_packages(pip='pip')

Returns a dict of installed pip packages:

'package_name': ['version'],
...