Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add epel-release and extra repos for RHEL #225

Merged
merged 1 commit into from
May 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions tasks/common-RHEL.yml
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"
4 changes: 4 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
is_prod: "{{ archivematica_src_environment_type == 'production' }}"
tags: "always" # inocuous to use always here

- name: "Include common-RHEL.yml for RHEL"
include: "common-RHEL.yml"
when: "ansible_distribution == 'RedHat'"

- name: "Install necessary packages required by this role"
hakamine marked this conversation as resolved.
Show resolved Hide resolved
package:
name: "{{ item }}"
Expand Down