infrastructure/scripts/ansible/lint.sh

14 lines
225 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 ansible/yamllint.yml ansible/
2019-12-08 12:07:57 +00:00
2021-02-07 13:02:14 +00:00
ansible-lint ansible/main.yml -p -c ansible/.ansible-lint
2019-12-08 12:07:57 +00:00
cd ansible/ && ansible-playbook main.yml --syntax-check