code: def yum_install(**kwargs):
      
      if 'repo' in kwargs:
          repo = kwargs['repo']
  
      for pkg in list(kwargs['packages']):
          if is_package_installed(distribution='el', pkg=pkg) is False:
              if 'repo' in locals():
                  log_green(
                      "installing %s from repo %s ..." % (pkg, repo))
                  sudo("yum install -y --quiet --enablerepo=%s %s" % (repo, pkg))
              else:
                  log_green("installing %s ..." % pkg)
                  sudo("yum install -y --quiet %s" % pkg)
docs: installs a yum package