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
|
- 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
|
||||||
|
|
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:
|
- 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', '==')
|
||||||
|
|
|
@ -5,3 +5,4 @@ skip/rhel8.0
|
||||||
skip/docker
|
skip/docker
|
||||||
needs/root
|
needs/root
|
||||||
destructive
|
destructive
|
||||||
|
needs/target/setup_epel
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue