Skip to content
Snippets Groups Projects
Commit 343a2643 authored by Smaine Kahlouch's avatar Smaine Kahlouch
Browse files

Merge pull request #203 from zehicle/flagfixes12

Add code to detect if epel is already installed and skip it if it is
parents 5691086b 107da007
No related branches found
No related tags found
No related merge requests found
...@@ -48,8 +48,8 @@ ...@@ -48,8 +48,8 @@
- name: check cloud_provider value - name: check cloud_provider value
fail: fail:
msg: "If set the 'cloud_provider' var must be set either to 'gce', 'aws' or 'openstack'" msg: "If set the 'cloud_provider' var must be set either to 'generic', 'gce', 'aws' or 'openstack'"
when: cloud_provider is defined and cloud_provider not in ['gce', 'aws', 'openstack'] when: cloud_provider is defined and cloud_provider not in ['generic', 'gce', 'aws', 'openstack']
- include: openstack-credential-check.yml - include: openstack-credential-check.yml
when: cloud_provider is defined and cloud_provider == 'openstack' when: cloud_provider is defined and cloud_provider == 'openstack'
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
changed_when: False changed_when: False
- name: Install epel-release on RedHat/CentOS - 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 when: ansible_distribution in ["CentOS","RedHat"] and
ansible_distribution_major_version >= 7 ansible_distribution_major_version >= 7
changed_when: False changed_when: False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment