Skip to content

Instantly share code, notes, and snippets.

View kenoh's full-sized avatar

Matúš Honěk kenoh

  • Brno, Czech republic
View GitHub Profile
@kenoh
kenoh / vagrant.py
Created September 30, 2016 13:55 — forked from lorin/vagrant.py
Vagrant dynamic inventory script for Ansible
#!/usr/bin/env python
# Adapted from Mark Mandel's implementation
# https://github.com/ansible/ansible/blob/devel/plugins/inventory/vagrant.py
import argparse
import json
import paramiko
import subprocess
import sys