def rpm_rebuilddb():
 module.run_command(['/usr/bin/rpm', '--rebuilddb'])

def rpm_rebuilddb ( ) : module . run_command ( [ '/usr/bin/rpm' , '--rebuilddb' ] )
runs rpm --rebuilddb to ensure the db is in good shape .