scripts v1

This commit is contained in:
2025-10-22 21:47:09 -05:00
commit acea71c326
10 changed files with 177 additions and 0 deletions

18
ansible/lint.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/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