From 50e4eb4dbb7c355c6c997efd18682ba55e367580 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Wed, 6 Jul 2016 10:55:58 +0200 Subject: [PATCH] install-ansible: exit if ansible is installed MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit fixes: #868 Signed-off-by: Sébastien Han --- install-ansible.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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." -- 2.39.5