Skip to content

Instantly share code, notes, and snippets.

@guymatz
guymatz / ansinv.py
Last active April 15, 2020 12:51
script to play with ansible inventory
#!/usr/bin/env python
'''
This script should be run against an ansible Inventory file
in order to return host/group information
Contact guy dot matz dot cft at jcrew dot com with any questions, although he's
probably completely forgotten everything about this . .. :-(
'''
import os
import json

Keybase proof

I hereby claim:

  • I am guymatz on github.
  • I am guymatz (https://keybase.io/guymatz) on keybase.
  • I have a public key ASAdMOU3B34JcrnC-aZKB_hQ8E1-yLnDhgjZ75LcowO5awo

To claim this, I am signing this object: