summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/setup_epel/tasks/main.yml
blob: a8593bb4fe8dadeed6180590f8f29a1b64ff7150 (plain)
1
2
3
4
5
6
7
8
9
10
- 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']