Files
infrascripts/ansible/lint.sh
2025-10-22 21:47:09 -05:00

18 lines
320 B
Bash
Executable File

#!/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