]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix install for rhel 473/head
authorSébastien Han <seb@redhat.com>
Mon, 11 Jan 2016 14:07:19 +0000 (15:07 +0100)
committerSébastien Han <seb@redhat.com>
Mon, 11 Jan 2016 14:07:19 +0000 (15:07 +0100)
Signed-off-by: Sébastien Han <seb@redhat.com>
install-ansible.sh

index e9c27051555cec48fe2f399f9e77698a98b1e169..6e559e925d827828da3f3796785612209f5138c4 100644 (file)
@@ -21,11 +21,14 @@ if [[ -x $(which lsb_release 2>/dev/null) ]]; then
     make install
     mkdir /etc/ansible
   elif [[ "Ubuntu" =~ $os_VENDOR ]]; then
-      add-apt-repository ppa:ansible/ansible
-      apt-get update
-      apt-get install -y ansible
+    add-apt-repository ppa:ansible/ansible
+    apt-get update
+    apt-get install -y ansible
+  else [[ "RedHatEnterpriseServer" =~ $os_VENDOR ]]; then
+    rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
+    yum install -y ansible
   fi
 elif [[ -r /etc/redhat-release ]]; then
-  yum install -y epel-release
+  rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
   yum install -y ansible
 fi