You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/setup_epel/tasks/main.yml

11 lines
617 B
YAML

- name: Enable RHEL7 extras
# EPEL 7 depends on RHEL 7 extras, which is not enabled by default on RHEL.
# See: https://docs.fedoraproject.org/en-US/epel/epel-policy/#_policy
command: yum-config-manager --enable rhel-7-server-rhui-extras-rpms
when: ansible_facts.distribution == 'RedHat' and ansible_facts.distribution_major_version == '7'
- name: Install EPEL
yum:
name: https://ci-files.testing.ansible.com/test/integration/targets/setup_epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm
disable_gpg_check: true
when: ansible_facts.distribution in ['RedHat', 'CentOS']