aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-10-19 22:32:54 -0700
committerEugene Triguba <hello@eugenetriguba.com>2026-10-19 22:32:54 -0700
commit6cf0129d002d0bbc88756f4d662e0f5af043dc52 (patch)
tree45c56805d7f49e5f1977050f7fa6da81b8ec9138 /bootstrap.sh
parentRename cgit to git and acme to ssl for httpd (diff)
downloadsite-configs-6cf0129d002d0bbc88756f4d662e0f5af043dc52.zip
Add static site hosting for eugenetriguba.com
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
}