infrastructure/scripts/ansible-lint.sh

14 lines
220 B
Bash
Raw Normal View History

2019-12-08 12:07:57 +00:00
#!/usr/bin/env bash
set -e
PATH=env/bin:${PATH}
set -x
yamllint -sc yamllint.yml ansible/
ansible-lint ansible/main.yml -p -c ansible/.ansible-lint
ansible-playbook -i ansible/hosts ansible/main.yml --syntax-check