summaryrefslogtreecommitdiff
path: root/ansible/all.sh
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-08-28 09:39:14 +0300
committerLars Wirzenius <liw@liw.fi>2021-08-28 09:39:14 +0300
commitb6afda742c37b9b4e187b98ac8e4ec3aebcf7866 (patch)
treeb8915f4c0b4767bcf49f5e3c22a464b035b1bc7f /ansible/all.sh
parent7e841e859014c7addd5051991062a4e79a18668d (diff)
downloadansibleness-b6afda742c37b9b4e187b98ac8e4ec3aebcf7866.tar.gz
drop sequoia-dev from all.sh
Sponsored-by: author
Diffstat (limited to 'ansible/all.sh')
-rwxr-xr-xansible/all.sh48
1 files changed, 20 insertions, 28 deletions
diff --git a/ansible/all.sh b/ansible/all.sh
index 7428fd5..bd4f8aa 100755
--- a/ansible/all.sh
+++ b/ansible/all.sh
@@ -2,39 +2,32 @@
set -eu
-newer()
-{
- [ "$1" -nt "$2" ] || [ ! -e "$2" ]
+newer() {
+ [ "$1" -nt "$2" ] || [ ! -e "$2" ]
}
-
-online()
-{
- ping -c1 "$1" > /dev/null 2>/dev/null
+online() {
+ ping -c1 "$1" >/dev/null 2>/dev/null
}
-maybe_run_playbook()
-{
- if newer "$1.yml" "$1.stamp" && online "$1"
- then
- echo "$1"
- chronic ./run-playbook "$1.yml"
- touch "$1.stamp"
- else
- echo "SKIPPING $1"
- fi
+maybe_run_playbook() {
+ if newer "$1.yml" "$1.stamp" && online "$1"; then
+ echo "$1"
+ chronic ./run-playbook "$1.yml"
+ touch "$1.stamp"
+ else
+ echo "SKIPPING $1"
+ fi
}
-maybe_run_ansible()
-{
- if newer "$1.yml" "$1.stamp" && online "$1"
- then
- echo "$1"
- chronic run-ansible "$1.hz" "hosts.$2" "$1.yml"
- touch "$1.stamp"
- else
- echo "SKIPPING $1"
- fi
+maybe_run_ansible() {
+ if newer "$1.yml" "$1.stamp" && online "$1"; then
+ echo "$1"
+ chronic run-ansible "$1.hz" "hosts.$2" "$1.yml"
+ touch "$1.stamp"
+ else
+ echo "SKIPPING $1"
+ fi
}
maybe_run_playbook exolobe1
@@ -44,7 +37,6 @@ maybe_run_playbook holywood2
maybe_run_playbook web
maybe_run_playbook atuin.liw.fi
maybe_run_playbook mirror-git
-maybe_run_playbook sequoia-dev
maybe_run_ansible git.liw.fi git
maybe_run_ansible http.liw.fi http