Xbps Facts

xbps.XbpsPackages

host.get_fact(XbpsPackages)

Returns a dict of installed XBPS packages:

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