Amazon Linux is a RHEL derivative used in AWS. Sounds like it forked at RHEL 5, but contains many packages of RHEL 6 at the moment. Unfortunately, this role fails on it today. This PR should address that.
Details:
Ansible returns 'NA' for ansible_distribution_major_version (understandably), and so this fails in defaults/main.yml:
That said, Ansible Linux comes with EPEL pre-installed (just disabled by default), so this changes the check to verify whether the epel.repo file exists and skip the installation entirely if it's there.
This may be better behavior regardless for follow-up runs of the same role.
Hi!
Amazon Linux is a RHEL derivative used in AWS. Sounds like it forked at RHEL 5, but contains many packages of RHEL 6 at the moment. Unfortunately, this role fails on it today. This PR should address that.
Details:
Ansible returns 'NA' for ansible_distribution_major_version (understandably), and so this fails in
defaults/main.yml
:That said, Ansible Linux comes with EPEL pre-installed (just disabled by default), so this changes the check to verify whether the epel.repo file exists and skip the installation entirely if it's there.
This may be better behavior regardless for follow-up runs of the same role.
Take a look and let me know what you think!