From: Sébastien Han Date: Thu, 4 Dec 2014 11:04:20 +0000 (+0100) Subject: Add support for Precise when installing ansible X-Git-Tag: v1.0.0~298^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b3f69125e56af586305c7b1e7f1e170358745860;p=ceph-ansible.git Add support for Precise when installing ansible Add support for precise and ppa. Signed-off-by: Sébastien Han --- diff --git a/bootstrap-ansible.sh b/bootstrap-ansible.sh index ab7df3117..675097dff 100644 --- a/bootstrap-ansible.sh +++ b/bootstrap-ansible.sh @@ -9,6 +9,7 @@ fi if [[ -x $(which lsb_release 2>/dev/null) ]]; then os_VENDOR=$(lsb_release -i -s) + os_VERSION=$(lsb_release -c -s) if [[ "Debian" =~ $os_VENDOR ]]; then apt-get update 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 mkdir /etc/ansible elif [[ "Ubuntu" =~ $os_VENDOR ]]; then - apt-get install -y ansible + if [[ "precise" =~ $os_VERSION ]]; then + add-apt-repository ppa:rquillo/ansible + apt-get update + apt-get install -y ansible + else + apt-get install -y ansible + fi fi elif [[ -r /etc/redhat-release ]]; then yum install -y ansible fi -