Skip to content

Instantly share code, notes, and snippets.

View fatal-exception's full-sized avatar

Matt Ralph fatal-exception

View GitHub Profile
Go-based config management - no dependencies
Make2 - a Go-based Make with modern semantics

Keybase proof

I hereby claim:

  • I am fatal-exception on github.
  • I am fatalexception (https://keybase.io/fatalexception) on keybase.
  • I have a public key ASC0v7aDtqTDK_s7_stcF1GNwIkUVbKxjzSuh1avvdVQtQo

To claim this, I am signing this object:

@fatal-exception
fatal-exception / pre-commit.ansible-check
Last active September 7, 2017 13:24
pre-commit hook to check ansible playbooks
#!/bin/env python
#
# Simple syntax-check on all Ansible playbooks.
# We collect all playbook yamls, remove 'role' and 'roles' keys (as we
# don't have all roles downloaded locally), write them into another dir,
# then run ansible-playbook --syntax-check against them all.
#
# To enable this hook, rename this file to "pre-commit".
import yaml