Use Ansible to provision NetBox and push data through the API.
A common pattern is generating markdown docs during playbook runs and storing them in NetBox custom fields.
- name: Create new device in NetBox
hosts: localhost
gather_facts: false
vars:
netbox_url: https://netbox.example.com/api
netbox_token: my_token
device_name: my_device
documentation: "{{ lookup('file', 'path/to/documentation.md') }}"
tasks:
- name: Create device in NetBox
netbox_devices:
url: "{{ netbox_url }}"
token: "{{ netbox_token }}"
name: "{{ device_name }}"
custom_fields:
documentation: "{{ documentation }}"
Beyond this playbook, we offer:
Contact our automation team: office@linux-server-admin.com