Skip to content

Instantly share code, notes, and snippets.

@christobill
christobill / machine.py
Last active July 5, 2016 12:03 — forked from nathanleclaire/machine.py
Ansible dynamic inventory plugin for Docker Machine
#!/usr/bin/env python
"""
Example Usage:
$ ansible -i machine.py machinename -m ping
"""
import argparse
import subprocess