mirror of https://github.com/ceph/ceph-ansible.git
Add support for Precise when installing ansible
Add support for precise and ppa. Signed-off-by: Sébastien Han <sebastien.han@enovance.com>pull/154/head
parent
93d86cd938
commit
b3f69125e5
|
@ -9,6 +9,7 @@ fi
|
||||||
|
|
||||||
if [[ -x $(which lsb_release 2>/dev/null) ]]; then
|
if [[ -x $(which lsb_release 2>/dev/null) ]]; then
|
||||||
os_VENDOR=$(lsb_release -i -s)
|
os_VENDOR=$(lsb_release -i -s)
|
||||||
|
os_VERSION=$(lsb_release -c -s)
|
||||||
if [[ "Debian" =~ $os_VENDOR ]]; then
|
if [[ "Debian" =~ $os_VENDOR ]]; then
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install python-pip python-dev git build-essential -y
|
apt-get install python-pip python-dev git build-essential -y
|
||||||
|
@ -18,9 +19,14 @@ if [[ -x $(which lsb_release 2>/dev/null) ]]; then
|
||||||
make install
|
make install
|
||||||
mkdir /etc/ansible
|
mkdir /etc/ansible
|
||||||
elif [[ "Ubuntu" =~ $os_VENDOR ]]; then
|
elif [[ "Ubuntu" =~ $os_VENDOR ]]; then
|
||||||
|
if [[ "precise" =~ $os_VERSION ]]; then
|
||||||
|
add-apt-repository ppa:rquillo/ansible
|
||||||
|
apt-get update
|
||||||
apt-get install -y ansible
|
apt-get install -y ansible
|
||||||
|
else
|
||||||
|
apt-get install -y ansible
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
elif [[ -r /etc/redhat-release ]]; then
|
elif [[ -r /etc/redhat-release ]]; then
|
||||||
yum install -y ansible
|
yum install -y ansible
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue