infrastructure/scripts/ansible/lint.sh

14 lines
217 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
set -x
yamllint -sc yamllint.yml ansible/
ansible-lint ansible/main.yml -p -c ansible/.ansible-lint
2020-01-17 20:38:45 +00:00
cd ansible/ && ansible-playbook main.yml --syntax-check