Ansible Role linuxfabrik.lfops.repo_epel¶
This role deploys the Extra Packages for Enterprise Linux (EPEL) Repository.
Available since LFOps 1.0.0.
How the Role Behaves¶
- On RHEL 10 and its rebuilds, EPEL follows the minor release of the host. EPEL 10 has one repository per RHEL minor release, and packages built for a newer minor release may need packages the host only gets with that release. A Rocky 10.2 host therefore uses EPEL 10.2 and switches to the next EPEL repository on its own once it is updated to the next Rocky minor release.
- EPEL stops updating the repository of a minor release once RHEL has moved on to the next one. Until the rebuild follows with its own minor release, such a host gets no EPEL updates.
- CentOS Stream 10 has no minor releases and gets the EPEL repository of the newest RHEL minor release.
- With
repo_epel__mirror_urlset, the host uses whatever the mirror provides belowepel/10/, regardless of its minor release.
Dependent Roles¶
Any LFOps playbook that installs this role runs these for you. Optional ones can be disabled via the playbook's skip variables.
- On Rocky 9 and newer, the CRB repository must be enabled, because EPEL packages depend on packages from it (role: linuxfabrik.lfops.repo_baseos). On Rocky, AlmaLinux and CentOS 8, this role enables the equivalent PowerTools repository itself.
Tags¶
repo_epel
- Deploys the EPEL Repository.
- Triggers: none.
Optional Role Variables¶
repo_epel__basic_auth_login
- Use HTTP basic auth to login to the repository. Only takes effect together with a custom mirror URL; the default public repositories do not use basic auth. Defaults to
lfops__repo_basic_auth_login, making it easy to set this for allrepo_*roles. - Type: Dictionary.
- Default:
'{{ lfops__repo_basic_auth_login | d("") }}' -
Subkeys:
-
password:- Mandatory. Password.
- Type: String.
-
username:- Mandatory. Username.
- Type: String.
-
repo_epel__epel_cisco_openh264_enabled
- Whether the "epel-cisco-openh264" repository should be enabled or not.
- Type: Bool.
- Default:
true
repo_epel__mirror_url
- Set the URL to a custom mirror server providing the repository. Defaults to
lfops__repo_mirror_urlto allow easily setting the same URL for allrepo_*roles. Iflfops__repo_mirror_urlis not set, the default mirrors of the repo are used. - Type: String.
- Default:
'{{ lfops__repo_mirror_url | d("") }}'
Example:
# optional
repo_epel__basic_auth_login:
username: 'my-username'
password: 'linuxfabrik'
repo_epel__epel_cisco_openh264_enabled: true
repo_epel__mirror_url: 'https://mirror.example.com'