Fix provision.sh

This commit is contained in:
Sam A. 2023-05-14 03:01:46 +02:00
parent 55b5df389a
commit d9df3d0354
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -18,7 +18,9 @@ install_modules() {
fi fi
} }
BASE_CMD="ansible-playbook playbook.yml --ask-vault-pass --ask-become-pass"
cd "$(dirname "$0")" || exit 255 cd "$(dirname "$0")" || exit 255
if [ "$1" = "--dry" ]; then if [ "$1" = "--dry" ]; then
EXEC="echo" EXEC="echo"
shift shift
@ -26,9 +28,10 @@ else
EXEC="eval" EXEC="eval"
fi fi
BASE_CMD="ansible-playbook playbook.yml --ask-vault-pass --ask-become-pass" if [ "$#" -gt 0 ]; then
TAG="$1" TAG="$1"
shift shift
fi
case $TAG in case $TAG in
"") "")