A pre-commit hook that check for ansible-vault encryption
Verifies that vault files are encrypted. Defaults to checking files starting
with vault
, ending with .vault.yml
or ending in .vault
# usage
repos:
- repo: https://github.com/pypeaday/ansible-vault-pre-commit
rev: v1.0
hooks:
- id: encryption-check
# override files to all files in ./tasks/ directory
files: ((^|/)tasks)