Skip to content

Instantly share code, notes, and snippets.

@dexterbt1
dexterbt1 / machine.py
Created June 13, 2017 04:12 — 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