Skip to content

Instantly share code, notes, and snippets.

View tuomastielinen's full-sized avatar

Tuomas Tielinen tuomastielinen

  • Helsinki, FInland
View GitHub Profile
@tuomastielinen
tuomastielinen / .git_hooks_pre-commit
Last active October 14, 2020 09:21 — forked from cniesen/.git_hooks_pre-commit
ansible-vault pre-commit hook
#!/usr/bin/env bash
###
# Pre-commit hook that verifies if all files containing 'vault' in the name # are encrypted.
# If not, commit will fail with an error message
#
# Original author: @ralovely
# https://www.reinteractive.net/posts/167-ansible-real-life-good-practices
#
# File should be .git/hooks/pre-commit and executable
###