/ansible-vault-pre-commit

pre-commit hook to ensure sensitive info in a repo is encrypted with ansible-vault

Primary LanguageShellMIT LicenseMIT

Ansible-vault-pre-commit

A pre-commit hook that check for ansible-vault encryption

Example

pre-commit-hook

Hooks

encryption-check

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)

Credit

iamthefij