chauanhtuandl.repo_epel
Ansible角色:EPEL仓库
为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。一般情况下,这些不应更改,但如果此角色过时,或如果您需要特定版本,可以覆盖这两个值。
依赖项
无。
示例剧本
- hosts: servers
roles:
- geerlingguy.repo-epel
许可证
MIT / BSD
作者信息
该角色由Jeff Geerling于2014年创建,他是Ansible for DevOps的作者。