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
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
-