--- - name: Install EPEL repo yum: pkg: epel-release state: installed update_cache: yes when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'