Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block versionsix

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
versionsix /
Created Jul 18, 2018 — forked from lorin/
Vagrant dynamic inventory script for Ansible
#!/usr/bin/env python
# Adapted from Mark Mandel's implementation
import argparse
import json
import paramiko
import subprocess
import sys
versionsix /
Created Jul 17, 2018 — forked from zaiste/
Convert RST to Markdown using Pandoc
for f in $FILES
echo "Converting $f to $"
`pandoc $f -f rst -t markdown -o $`
versionsix /
Created Jun 20, 2018 — forked from alces/
Using Ad-hoc Inventories in Ansible

In case you want to run ansible (or ansible-playbook) command against a set of hosts that makes sense only for one run, you can don't bother to create one-time inventory file, but simply define a comma-separated list of hosts as argument of --invertory option (or its short form that's simply -i) as follows:

ansible --inventory=myhost1,myhost2,myhost3 all -m setup -a 'filter=*name*'

(note that all in this command line stands for the target hostname)

If you have only one host to run your playbook against, your inventory string must ends with ,

versionsix / cymru-lookup.php
Created Apr 22, 2017 — forked from leprechau/cymru-lookup.php
testing the cymru netcat access
View cymru-lookup.php
/* test host list */
$hostlist = array(
/* do the lookup */
You can’t perform that action at this time.