infrastructure/scripts/ansible/lint.sh

14 lines
172 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
yamllint -sc ansible/yamllint.yml ansible
2019-12-08 12:07:57 +00:00
cd ansible/
2019-12-08 12:07:57 +00:00
ansible-lint -p
2019-12-08 12:07:57 +00:00
ansible-playbook main.yml --syntax-check