Browse Source

ansible: check if ansible is installed

pull/1/head
10sr 10 years ago
parent
commit
b339377511
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      ansible/run.sh

+ 8
- 0
ansible/run.sh View File

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

Loading…
Cancel
Save