old_contents: from ceph_deploy.util import pkg_managers
  
  
  def uninstall(distro, purge=False):
      packages = [
          'ceph',
          'ceph-common',
          'ceph-radosgw',
          ]
  
      pkg_managers.yum_remove(
          distro.conn,
          packages,
      )
  
  
new_contents: def uninstall(distro, purge=False):
      packages = [
          'ceph',
          'ceph-common',
          'ceph-radosgw',
          ]
  
      distro.packager.remove(packages)
  
subject: Use packager object for Fedora uninstall