shaneholloman.epel

Ansible 角色: epel

CI

为 RHEL/CentOS 安装 EPEL 仓库(企业 Linux 的额外包)。

需求

此角色仅在 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:
    - shaneholloman.epel

许可证

无许可证

作者信息

此角色创建于 2023 年

安装
ansible-galaxy install shaneholloman.epel
许可证
unlicense
下载
661
拥有者