Collection
Netbox
Installation
Configuration
# netbox_inv.yml
plugin: "netbox.netbox.nb_inventory"
validate_certs: false
api_endpoint: http://192.168.0.115:8000
token: 98f02164d0ef623965a8992bece02c3cc2ca12be
# Create Ansible groups based on device roles: Router and Switch
group_by:
- device_roles
- platforms
# don't need to pull down extra config data
config_context: false
# Only return devices with management IPs (ignore passive devices)
# The plug will also store this as "ansible_host"
device_query_filters:
- has_primary_ip: "true"
# Additionally, have the plugin include the network OS
compose:
ansible_network_os: platform.slugParse Genie
Usage
Example
Generic Tabular Parsing
Reference
Last updated