Rpm Facts

rpm_packages

host.fact.rpm_packages

Returns a dict of installed rpm packages:

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

rpm_package

host.fact.rpm_package(name)

Returns information on a .rpm file:

{
    'name': 'my_package',
    'version': '1.0.0',
}