Kapisi/precommit-hooks/playbook-lint-check

8 lines
156 B
Plaintext
Raw Normal View History

2024-08-22 15:30:41 -05:00
#!/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