Fix failing install-ansible test

Fix test for Red Hat Enterprise Server and add a default case.
pull/474/head
François Charlier 2016-01-11 17:05:53 +01:00
parent ba6a54fc53
commit ee61abef30
1 changed files with 6 additions and 1 deletions

View File

@ -24,9 +24,14 @@ if [[ -x $(which lsb_release 2>/dev/null) ]]; then
add-apt-repository ppa:ansible/ansible add-apt-repository ppa:ansible/ansible
apt-get update apt-get update
apt-get install -y ansible apt-get install -y ansible
else [[ "RedHatEnterpriseServer" =~ $os_VENDOR ]]; then elif [[ "RedHatEnterpriseServer" =~ $os_VENDOR ]]; then
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y ansible yum install -y ansible
else
echo "Unsupported platform ${os_VENDOR}: ${os_VERSION}"
echo "Please send a pull-request or open an issue"
echo "on https://github.com/ceph/ceph-ansible/"
exit 1
fi fi
elif [[ -r /etc/redhat-release ]]; then elif [[ -r /etc/redhat-release ]]; then
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm