diff --git a/ansible/run.sh b/ansible/run.sh index d283384..610b77a 100755 --- a/ansible/run.sh +++ b/ansible/run.sh @@ -1,3 +1,11 @@ #!/bin/sh +set -e + +if ! command -v ansible-playbook >/dev/null +then + echo 'Command not found: ansible-playbook' + echo 'Install ansible first.' + exit 1 +fi ansible-playbook -i hosts ansible.yml --ask-sudo-pass