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