Added check mode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user