Skip to content

Instantly share code, notes, and snippets.

@wtcross
wtcross / netbox-ansible.py
Created April 17, 2017 20:02 — forked from linuxsimba/netbox-ansible.py
Ansible Netbox Integration Example
#!/usr/bin/python
""" Ansible Inventory Generated From Netbox
Author: Stanley Karunditu <stanley@linuxsimba.com>
License: MIT
Requirements:
* use netbox device roles that result in hyphenated role names. E.g