geerlingguy / ansible-role-repo-epel

Ansible Role - EPEL Repository for RHEL/CentOS
https://galaxy.ansible.com/geerlingguy/repo-epel/
MIT License
186 stars 148 forks source link

Install EPEL Task Broken in Ansible 2.5 #26

Closed mattmonkey83 closed 6 years ago

mattmonkey83 commented 6 years ago

There appears to be a change in loop conditionals in Ansible 2.5 - https://github.com/ansible/ansible/issues/37980

The install of the epel package works but the conditional fails, leading to retries and eventually a failure of the task.

Changing this line should resolve - https://github.com/geerlingguy/ansible-role-repo-epel/blob/master/tasks/main.yml#L11

mattmonkey83 commented 6 years ago

Just spotted a related PR has been raised - https://github.com/geerlingguy/ansible-role-repo-epel/pull/25

geerlingguy commented 6 years ago

That PR has been merged (https://github.com/geerlingguy/ansible-role-repo-epel/pull/25), and I tagged a new release of the role—1.2.3—and this is now resolved. Just tested on my local machine and it worked for me!