How to Inject Host and Group Vars from Ansible into NetBox Config Templates
Ansible and NetBox Tip:
Pass Ansible group_vars and host_vars into NetBox Config Templates by sending your Ansible vars, making them available directly within your Config Templates.
Here is an example:
# Ansible Playbook
- name: Trigger NetBox to return rendered configuration
ansible.builtin.uri:
url: "{{ NETBOX_ENDPOINT }}/api/