-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add epel-release and extra repos for RHEL
RHEL doesn't include the `epel-release` package on its official repositories, so it is needed to install the `epel-release`rpm package from the fedoraproject homepage. It is recommended to also enable the optional and extras repositories since EPEL packages may depend on packages from these repositories.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
|
||
# | ||
# Install epel-release rpm package | ||
# | ||
|
||
- name: "Install EPEL repository on RHEL" | ||
yum: | ||
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | ||
state: "present" | ||
|
||
# | ||
# Install optional and extras repoisitories because EPEL packages may depend on | ||
# packages from these repositories. | ||
# See: https://github.com/artefactual-labs/ansible-archivematica-src/issues/209 | ||
# | ||
|
||
- name: "Add rhel-*-optional-rpms repo on RHEL" | ||
command: subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters