yumrepos: be RHEL7/CentOS7 compatible

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2021-03-30 14:36:04 +02:00
parent eefdc6f33b
commit daf7776a9d

View file

@ -83,7 +83,7 @@
- yumrepos
- name: epel release on el systems (aws)
dnf:
package:
name: 'epel-release'
state: present
when: ((ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and use_default_epel) and datacenter == "aws"