Pacman Facts

pacman.PacmanPackages

host.get_fact(PacmanPackages)

Returns a dict of installed pacman packages:

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

pacman.PacmanUnpackGroup

host.get_fact(PacmanUnpackGroup, name)

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

[
    'package_name',
]