No description
| .gitignore | ||
| creds.py.template | ||
| creds_env.py | ||
| hosts.py | ||
| inventory.py | ||
| main.py | ||
| README.md | ||
| service.py | ||
Netbox to Ansible Script
This is a simple script to pull all info from a netbox instance and export it to a json format that can be used from ansible. Host will be grouped by role and all fields from netbox will be availible as hostvars, including all interfaces with corresponding ips.
Usage
- Copy creds.py.template to creds.py and fill in token and netbox url.
- Start ansible and specify
main.pyas the inventory file.