Rpm Facts¶
rpm.RpmPackage
¶
host.get_fact(RpmPackage, package)
Returns information on a .rpm file:
{
"name": "my_package",
"version": "1.0.0",
}
rpm.RpmPackageProvides
¶
host.get_fact(RpmPackageProvides, package)
Returns a list of packages that provide the specified capability (command, file, etc).
rpm.RpmPackages
¶
host.get_fact(RpmPackages, )
Returns a dict of installed rpm packages:
{
"package_name": ["version"],
}