Added check mode

This commit is contained in:
2024-11-24 21:34:31 +01:00
parent 8b965d1f54
commit 5d97973d54
3 changed files with 11 additions and 1 deletions

View File

@@ -1,6 +1,11 @@
#!/usr/bin/env ash
set -e
ansible-playbook "$INPUT_PATH" -vv
if [ "$INPUT_CHECK_ONLY" = "true" ]; then
ANSIBLE_OPTIONS="--check --diff"
fi;
ansible-playbook "$INPUT_PATH" -vv "$ANSIBLE_OPTIONS"
exit 0