Kapisi/precommit-hooks/playbook-lint-check
2024-08-22 15:30:41 -05:00

8 lines
156 B
Bash
Executable File

#!/bin/bash
# pre-commit hook to use ansible-lint to check our playbooks.
for file in `find ../playbooks/ -type f`; do
ansible-lint "$file"
done