#!/usr/bin/env bash # Author: Landon Dyck # This runs yamllint and ansible-lint on the ansible scripts, then ansible-playbook's syntax # checker. # Usage: $ ./lint.sh set -e PATH=${PWD}/env/bin:${PATH} yamllint -sc ansible/yamllint.yml ansible cd ansible/ ansible-lint -p ansible-playbook main.yml --syntax-check