Skip to content

Instantly share code, notes, and snippets.

View dbuteau's full-sized avatar
🤘
Always busy

Daniel Buteau dbuteau

🤘
Always busy
  • Sophia Antipolis, France
View GitHub Profile
@dbuteau
dbuteau / require_updated_git_branch.py
Last active April 21, 2022 08:18 — forked from bhcopeland/require_updated_git_branch.py
ansible callback_plugin to check that the locally git directory is up to date/in sync.
#! /usr/bin/env python3
# coding: utf-8
import os
import re
import subprocess
import sys
from ansible import __version__ as ANSIBLE_VERSION
if ANSIBLE_VERSION.startswith('2'):