infrastructure/scripts/ansible/lint.sh
2020-06-15 13:21:52 +01:00

13 lines
257 B
Bash
Executable file

#!/usr/bin/env bash
set -e
PATH=${PWD}/env/bin:${PATH}
set -x
yamllint -sc ansible/yamllint.yml ansible/
ansible-lint ansible/main.yml -p -c ansible/.ansible-lint --exclude ansible/galaxy_roles/
cd ansible/ && ansible-playbook main.yml --syntax-check