From b6afda742c37b9b4e187b98ac8e4ec3aebcf7866 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 28 Aug 2021 09:39:14 +0300 Subject: drop sequoia-dev from all.sh Sponsored-by: author --- ansible/all.sh | 48 ++++++++++++++++++++---------------------------- 1 file changed, 20 insertions(+), 28 deletions(-) (limited to 'ansible/all.sh') 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 -- cgit v1.2.1