Skip to content
Snippets Groups Projects
Commit f12ad6a5 authored by Rob Hirschfeld's avatar Rob Hirschfeld
Browse files

consolidate EPEL change into a single task

as per @smana request
parent 831a54e9
No related branches found
No related tags found
No related merge requests found
......@@ -78,17 +78,10 @@
ansible_distribution_major_version > 21
changed_when: False
- name: Check if epel-release-7-5.noarch is installed
command: rpm -q epel-release-7-5.noarch
register: epel_check
when: ansible_distribution in ["CentOS","RedHat"] and
ansible_distribution_major_version >= 7
- name: Install epel-release on RedHat/CentOS
command: rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
shell: rpm -qa | grep epel-release || rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
when: ansible_distribution in ["CentOS","RedHat"] and
ansible_distribution_major_version >= 7 and
epel_check.stdout.find('is not installed') != -1
ansible_distribution_major_version >= 7
changed_when: False
- name: Install packages requirements
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment