280ac8dbda
Latest versions of CentOS and RHEL already have YUM deprecated and future versions would drop support. This commit moves browbeat to use the package module instead of yum. Package module will select DNF if it is available on the system rather than yum. Change-Id: I5892fd6209e3be7f3cb69bcfe3df54726043354a
35 lines
682 B
YAML
35 lines
682 B
YAML
---
|
|
#
|
|
# Tasks install EPEL packages
|
|
#
|
|
|
|
- name: Remove old EPEL
|
|
package:
|
|
name: epel-release
|
|
state: absent
|
|
become: true
|
|
|
|
# The fedoraproject CDN has problems sometimes, this will keep trying
|
|
# for up to 10 minutes before failing.
|
|
- name: Import EPEL GPG Key
|
|
rpm_key:
|
|
state: present
|
|
key: "{{ epel7_rpmkey }}"
|
|
become: true
|
|
register: import_result
|
|
until: import_result is success
|
|
retries: 10
|
|
delay: 10
|
|
|
|
# Same as above but with the Centos CDN
|
|
- name: Check for EPEL repo
|
|
package:
|
|
name: "{{ epel7_rpm }}"
|
|
state: present
|
|
become: true
|
|
register: install_result
|
|
until: install_result is success
|
|
retries: 10
|
|
delay: 10
|
|
notify: remove_epel
|