From 6ea2f9549551cff5a1d20f829b3f7d31d30fb5eb Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 23 Mar 2015 12:23:56 +0100 Subject: Fix the script to show a error message --- roles/local_deploy/files/ansible_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/local_deploy') diff --git a/roles/local_deploy/files/ansible_run.sh b/roles/local_deploy/files/ansible_run.sh index 4e43f93..686907a 100644 --- a/roles/local_deploy/files/ansible_run.sh +++ b/roles/local_deploy/files/ansible_run.sh @@ -11,7 +11,7 @@ if [ -f /etc/ansible/requirements.yml ]; then /usr/bin/ansible-galaxy install -f -r /etc/ansible/requirements.yml fi -if [ -n $RESULT ]; then +if [ -n "$RESULT" ]; then ansible-playbook -c local $RESULT else echo "No playbook for this host found" -- cgit