You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use nb_inventory plugin to run a playbook more than once. The play doesn't matter, only that nb_inventory is used as an inventory source.
Expected Behavior
On the first run, nb_inventory fetches the API schema at api/schema/?format=json and caches it to ~/.ansible/tmp/netbox_api_dump.json. Future runs using the same version of NetBox should use this cached copy. This is important for performance because the schema file is in many cases very large (>6MB in my testing), so retrieving it every run degrades performance significantly.
Observed Behavior
nb_inventory fetches the API schema on every run, regardless of the fact that A) the version of NetBox hasn't changed, and B) there is a cached copy in ~/.ansible/tmp.
The text was updated successfully, but these errors were encountered:
Ansible NetBox Collection version
v3.13.0
Ansible version
ansible [core 2.15.1] config file = /Users/decoupca/code/ansible/ansible-dev.cfg configured module search path = ['/Users/decoupca/code/ansible/library'] ansible python module location = /Users/decoupca/code/ansible/venv/lib/python3.11/site-packages/ansible ansible collection location = /Users/decoupca/.ansible/collections:/usr/share/ansible/collections executable location = /Users/decoupca/code/ansible/venv/bin/ansible python version = 3.11.4 (main, Jun 20 2023, 17:23:00) [Clang 14.0.3 (clang-1403.0.22.14.1)] (/Users/decoupca/code/ansible/venv/bin/python3.11) jinja version = 3.1.2 libyaml = True
NetBox version
v3.5.6
Python version
3.11
Steps to Reproduce
Use
nb_inventory
plugin to run a playbook more than once. The play doesn't matter, only thatnb_inventory
is used as an inventory source.Expected Behavior
On the first run,
nb_inventory
fetches the API schema atapi/schema/?format=json
and caches it to~/.ansible/tmp/netbox_api_dump.json
. Future runs using the same version of NetBox should use this cached copy. This is important for performance because the schema file is in many cases very large (>6MB in my testing), so retrieving it every run degrades performance significantly.Observed Behavior
nb_inventory
fetches the API schema on every run, regardless of the fact that A) the version of NetBox hasn't changed, and B) there is a cached copy in~/.ansible/tmp
.The text was updated successfully, but these errors were encountered: