Sfoglia il codice sorgente

ansible: check if ansible is installed

pull/1/head
10sr 10 anni fa
parent
commit
b339377511
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. +8
    -0
      ansible/run.sh

+ 8
- 0
ansible/run.sh Vedi 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

Caricamento…
Annulla
Salva