aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh13
1 files changed, 2 insertions, 11 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 55b22ae..be0f4b7 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,13 +1,10 @@
#!/bin/sh
-set -e
-
-PLAYBOOK_DIR="$(cd "$(dirname "$0")" && pwd)"
-PLAYBOOK="${PLAYBOOK_DIR}/site.yml"
+set -o errexit
+set -o nounset
main() {
ensure_ansible_installed
ensure_ansible_collections_installed
- run_playbook "$@"
}
ensure_ansible_installed() {
@@ -35,12 +32,6 @@ ensure_ansible_collections_installed() {
fi
}
-run_playbook() {
- log_step "Running playbook"
- ansible-playbook --ask-become-pass --ask-vault-pass "$PLAYBOOK" "$@"
- log_step "Done!"
-}
-
bin_exists() {
command -v "$1" >/dev/null 2>&1
}