diff --git a/tasks/yumrepos.yml b/tasks/yumrepos.yml index 7fda021062..6ed69d33dd 100644 --- a/tasks/yumrepos.yml +++ b/tasks/yumrepos.yml @@ -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"