Run syntax check without inventory file
- useful in the development setting where no deployment takes place - shows a lot of warnings about the inventory file absence
This commit is contained in:
parent
17016d6549
commit
e38f34ccb8
|
@ -11,7 +11,7 @@ STASH_NAME="pre-commit-$(date +%s)"
|
|||
git stash save -q --keep-index $STASH_NAME
|
||||
|
||||
echo "Checking the playbook syntax"
|
||||
ansible-playbook -i hosts site.yml --syntax-check
|
||||
ansible-playbook -i none site.yml --syntax-check
|
||||
RESULT=$?
|
||||
|
||||
if [[ $RESULT == 0 ]]; then
|
||||
|
|
Loading…
Reference in New Issue