Fixed stuff

This commit is contained in:
2024-11-24 21:44:23 +01:00
parent 5d97973d54
commit f5b3e51671
4 changed files with 16 additions and 14 deletions

View File

@@ -1,11 +1,17 @@
#!/usr/bin/env ash
INPUT_PLAYBOOK_PATH="$playbook"
INPUT_ONLY_CHECK="$only_check"
set -e
if [ "$INPUT_CHECK_ONLY" = "true" ]; then
ANSIBLE_OPTIONS="--check --diff"
ANSIBLE_OPTIONS="-vv"
if [ "$INPUT_ONLY_CHECK" = "true" ]; then
ANSIBLE_OPTIONS="${ANSIBLE_OPTIONS} --check --diff"
fi;
ansible-playbook "$INPUT_PATH" -vv "$ANSIBLE_OPTIONS"
echo "Running playbook with options: ansible-playbook $ANSIBLE_OPTIONS \"$INPUT_PLAYBOOK_PATH\""
ansible-playbook $ANSIBLE_OPTIONS "$INPUT_PLAYBOOK_PATH"
exit 0