]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
install: remove epel 762/head
authorSébastien Han <seb@redhat.com>
Sat, 7 May 2016 00:14:46 +0000 (02:14 +0200)
committerSébastien Han <seb@redhat.com>
Sat, 7 May 2016 00:14:46 +0000 (02:14 +0200)
We just add epel to conviently install Ansible. However we don't keep it
as it could disrupt ceph's installation and dependancies.

Signed-off-by: Sébastien Han <seb@redhat.com>
install-ansible.sh

index b3127d7b8e13ffea63cb3a846e2dd89d4eb96526..5e24c2f1a1528bdca942dc294afe52cc063e74c3 100755 (executable)
@@ -27,6 +27,7 @@ elif [[ "Ubuntu" =~ $os_VENDOR ]]; then
 elif [[ "RedHatEnterpriseServer" =~ $os_VENDOR || "CentOS" =~ $os_VENDOR || -r /etc/redhat-release ]]; then
   rpm -q epel-release-* || rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
   yum install -y ansible
+  yum remove -y $(rpm -q epel-release-*)
 else
   if [[ ! -x $(which lsb_release 2>/dev/null) ]]; then
     echo "lsb_release is not installed"