From 92ba3ba04aa9f885131e6ba01f0b61a64d4ac99a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 11 Jan 2016 15:07:19 +0100 Subject: [PATCH] Fix install for rhel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien Han --- install-ansible.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/install-ansible.sh b/install-ansible.sh index e9c270515..6e559e925 100644 --- a/install-ansible.sh +++ b/install-ansible.sh @@ -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