From: Sébastien Han Date: Wed, 6 Jul 2016 08:55:58 +0000 (+0200) Subject: install-ansible: exit if ansible is installed X-Git-Tag: v1.0.6~75^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F869%2Fhead;p=ceph-ansible.git install-ansible: exit if ansible is installed fixes: #868 Signed-off-by: Sébastien Han --- diff --git a/install-ansible.sh b/install-ansible.sh index 27a609f16..d2ab29108 100755 --- a/install-ansible.sh +++ b/install-ansible.sh @@ -5,6 +5,13 @@ set -e +if ansible --version &> /dev/null ; then + echo "Ansible is already installed." + echo "Doing nothing." + echo "Exiting now." + exit 1 +fi + if [[ $EUID -ne 0 ]]; then echo "You are NOT running this script as root." echo "You should."