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:
Aleskey Zalesov 2018-03-05 14:59:51 +03:00
parent 17016d6549
commit e38f34ccb8
1 changed files with 1 additions and 1 deletions

View File

@ -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