Install EPEL on RHEL using RPM from S3.
This commit is contained in:
parent
e9d1dd51d2
commit
dd09a9a9fd
7 changed files with 12 additions and 7 deletions
1
test/integration/targets/setup_docker/aliases
Normal file
1
test/integration/targets/setup_docker/aliases
Normal file
|
@ -0,0 +1 @@
|
|||
needs/target/setup_epel
|
|
@ -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
|
||||
|
|
3
test/integration/targets/setup_epel/tasks/main.yml
Normal file
3
test/integration/targets/setup_epel/tasks/main.yml
Normal 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
|
1
test/integration/targets/setup_rpm_repo/aliases
Normal file
1
test/integration/targets/setup_rpm_repo/aliases
Normal file
|
@ -0,0 +1 @@
|
|||
needs/target/setup_epel
|
|
@ -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', '==')
|
||||
|
|
|
@ -5,3 +5,4 @@ skip/rhel8.0
|
|||
skip/docker
|
||||
needs/root
|
||||
destructive
|
||||
needs/target/setup_epel
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue