Skip to content

Instantly share code, notes, and snippets.

View cad's full-sized avatar

Mustafa cad

View GitHub Profile
@cad
cad / inventory.py
Created February 9, 2016 16:39 — forked from duggan/inventory.py
Present Terraform tfstate data as an Ansible inventory
#!/usr/bin/env python
import sys
import os
import json
import argparse
import collections
__description__ = """Ansible Dynamic Inventory for Terraform."""
__epilog__ = """