Pacman Facts

pacman_packages

host.fact.pacman_packages

Returns a dict of installed pacman packages:

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

pacman_unpack_group

host.fact.pacman_unpack_group(name)

Returns a list of actual packages belonging to the provided package name, expanding groups or virtual packages.

[
    'package_name',
]