Skip to content

Instantly share code, notes, and snippets.

@robrant
robrant / ansible_networking.yml
Created September 22, 2016 20:17
Not testing ansible networking
# Mostly copied/scripted from
# https://www.modmypi.com/blog/tutorial-how-to-give-your-raspberry-pi-a-static-ip-address
# We're assuming you're on ethernet when this is run.
# Also worth trying:
# route -n | awk '$4 == "UG" {print $2}'
# Get basic network information
- name: Get the gateway
shell: $(/sbin/route -n | awk 'FNR == 3 {print $2}')
@robrant
robrant / connected well-related nodes
Last active August 29, 2015 14:05
Cypher: get paths to nodes with > 2 links