Skip to content

Commit

Permalink
Install EPEL on RHEL using RPM from S3.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclay committed Apr 5, 2019
1 parent e9d1dd5 commit dd09a9a
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions test/integration/targets/setup_docker/aliases
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
needs/target/setup_epel
4 changes: 2 additions & 2 deletions test/integration/targets/setup_docker/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
- libseccomp

- name: Install epel repo which is missing on rhel-7 and is needed for pigz (needed for docker-ce 18)
yum:
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
include_role:
name: setup_epel

- name: Enable extras repository for RHEL on AWS
command: yum-config-manager --enable rhui-REGION-rhel-server-extras
Expand Down
3 changes: 3 additions & 0 deletions test/integration/targets/setup_epel/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- name: Install EPEL
yum:
name: https://s3.amazonaws.com/ansible-ci-files/test/integration/targets/setup_epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm
1 change: 1 addition & 0 deletions test/integration/targets/setup_rpm_repo/aliases
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
needs/target/setup_epel
4 changes: 2 additions & 2 deletions test/integration/targets/setup_rpm_repo/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- block:
- name: Install epel repo which is missing on rhel-7 and is needed for rpmfluff
package:
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
include_role:
name: setup_epel
when:
- ansible_distribution in ['RedHat']
- ansible_distribution_major_version is version('7', '==')
Expand Down
1 change: 1 addition & 0 deletions test/integration/targets/ufw/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ skip/rhel8.0
skip/docker
needs/root
destructive
needs/target/setup_epel
5 changes: 2 additions & 3 deletions test/integration/targets/ufw/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
# Make sure ufw is installed
- name: Install EPEL repository (RHEL only)
yum:
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm
state: present
include_role:
name: setup_epel
when: ansible_distribution == 'RedHat'
- name: Install iptables (SuSE only)
package:
Expand Down

0 comments on commit dd09a9a

Please sign in to comment.