infrastructure/scripts/ansible/lint.sh

16 lines
216 B
Bash
Raw Normal View History

2019-12-08 12:07:57 +00:00
#!/usr/bin/env bash
set -e
2020-01-17 20:38:45 +00:00
PATH=${PWD}/env/bin:${PATH}
2019-12-08 12:07:57 +00:00
cd ansible/
2019-12-08 12:07:57 +00:00
set -x
yamllint -sc yamllint.yml .
2019-12-08 12:07:57 +00:00
ansible-lint main.yml -p -c .ansible-lint --exclude galaxy_roles/
2019-12-08 12:07:57 +00:00
ansible-playbook main.yml --syntax-check