Install EPEL on RHEL using RPM from S3.

This commit is contained in:
Matt Clay 2019-04-05 10:06:22 -07:00
parent e9d1dd51d2
commit dd09a9a9fd
7 changed files with 12 additions and 7 deletions

View file

@ -0,0 +1 @@
needs/target/setup_epel

View file

@ -12,8 +12,8 @@
- libseccomp - libseccomp
- name: Install epel repo which is missing on rhel-7 and is needed for pigz (needed for docker-ce 18) - name: Install epel repo which is missing on rhel-7 and is needed for pigz (needed for docker-ce 18)
yum: include_role:
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm name: setup_epel
- name: Enable extras repository for RHEL on AWS - name: Enable extras repository for RHEL on AWS
command: yum-config-manager --enable rhui-REGION-rhel-server-extras command: yum-config-manager --enable rhui-REGION-rhel-server-extras

View file

@ -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

View file

@ -0,0 +1 @@
needs/target/setup_epel

View file

@ -1,7 +1,7 @@
- block: - block:
- name: Install epel repo which is missing on rhel-7 and is needed for rpmfluff - name: Install epel repo which is missing on rhel-7 and is needed for rpmfluff
package: include_role:
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm name: setup_epel
when: when:
- ansible_distribution in ['RedHat'] - ansible_distribution in ['RedHat']
- ansible_distribution_major_version is version('7', '==') - ansible_distribution_major_version is version('7', '==')

View file

@ -5,3 +5,4 @@ skip/rhel8.0
skip/docker skip/docker
needs/root needs/root
destructive destructive
needs/target/setup_epel

View file

@ -1,9 +1,8 @@
--- ---
# Make sure ufw is installed # Make sure ufw is installed
- name: Install EPEL repository (RHEL only) - name: Install EPEL repository (RHEL only)
yum: include_role:
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm name: setup_epel
state: present
when: ansible_distribution == 'RedHat' when: ansible_distribution == 'RedHat'
- name: Install iptables (SuSE only) - name: Install iptables (SuSE only)
package: package: