mirror of https://github.com/ceph/ceph-ansible.git
install: remove epel
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>pull/762/head
parent
7dd6e02b5d
commit
66d914fb15
|
@ -27,6 +27,7 @@ elif [[ "Ubuntu" =~ $os_VENDOR ]]; then
|
||||||
elif [[ "RedHatEnterpriseServer" =~ $os_VENDOR || "CentOS" =~ $os_VENDOR || -r /etc/redhat-release ]]; 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
|
rpm -q epel-release-* || rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
||||||
yum install -y ansible
|
yum install -y ansible
|
||||||
|
yum remove -y $(rpm -q epel-release-*)
|
||||||
else
|
else
|
||||||
if [[ ! -x $(which lsb_release 2>/dev/null) ]]; then
|
if [[ ! -x $(which lsb_release 2>/dev/null) ]]; then
|
||||||
echo "lsb_release is not installed"
|
echo "lsb_release is not installed"
|
||||||
|
|
Loading…
Reference in New Issue