1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
--- # tasks file for epel - name: install epel gpg key rpm_key: key: "{{ epel_gpg_key }}" state: present when: - ansible_distribution in [ "Amazon", "CentOS", "RedHat" ] - name: install epel-release package: name: "{{ epel_url }}" state: present notify: - yum update cache when: - ansible_distribution in [ "Amazon", "CentOS", "RedHat" ]