geerlingguy.repo-epel

Ansible 角色:EPEL 仓库

CI

安装 EPEL 仓库 (企业 Linux 的扩展软件包)用于 RHEL/CentOS。

需求

此角色仅在 RHEL 及其衍生版本上需要/运行。

角色变量

可用的变量如下所列,并附有默认值(见 defaults/main.yml):

epel_repo_url: "http://download.fedoraproject.org/pub/epel/{{ ansible_distribution_major_version }}/{{ ansible_userspace_architecture }}{{ '/' if ansible_distribution_major_version < '7' else '/e/' }}epel-release-{{ ansible_distribution_major_version }}-{{ epel_release[ansible_distribution_major_version] }}.noarch.rpm"
epel_repo_gpg_key_url: "/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}"

EPEL 仓库的 URL 和 GPG 密钥 URL。通常,这些不应更改,但如果此角色过期或您需要特定版本,可以覆盖这两个值。

epel_repo_disable: false

设置为 true 以禁用 EPEL 仓库(即使已安装)。

依赖项

无。

示例剧本

- hosts: servers
  roles:
    - geerlingguy.repo-epel

许可证

MIT / BSD

作者信息

此角色由 Jeff Geerling 于 2014 年创建,他是 Ansible for DevOps 的作者。

安装
ansible-galaxy install geerlingguy.repo-epel
许可证
mit
下载
4.6M
拥有者
Father, author, developer, maker. Sometimes called "an inflammatory enigma". #stl #drupal #ansible #k8s #raspberrypi #crohns