From d3b26e3e1ad3941a5017c78cf6cde60808df432a Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Tue, 11 Jun 2024 11:23:34 +0200 Subject: [PATCH] Add convenience run scripts --- run-arch.sh | 5 +++++ run-macos.sh | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100755 run-macos.sh diff --git a/run-arch.sh b/run-arch.sh index ecaebde..43c312e 100755 --- a/run-arch.sh +++ b/run-arch.sh @@ -1,3 +1,8 @@ #!/usr/bin/env -S bash -i +if [[ -z "${ANSIBLE_BECOME_PASS}" ]]; then + echo "ANSIBLE_BECOME_PASS is not set. Exiting." + exit 1 +fi + ansible-playbook main.yml -e "ansible_become_pass=${ANSIBLE_BECOME_PASS}" \ No newline at end of file diff --git a/run-macos.sh b/run-macos.sh new file mode 100755 index 0000000..df10625 --- /dev/null +++ b/run-macos.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env -S bash -i + +if [[ -z "${ANSIBLE_BECOME_PASS}" ]]; then + echo "ANSIBLE_BECOME_PASS is not set. Exiting." + exit 1 +fi + +ansible-playbook macos.yml -e "ansible_become_pass=${ANSIBLE_BECOME_PASS}" \ No newline at end of file