aabouzaid / netbox-as-ansible-inventory

Ansible dynamic inventory script for Netbox.
GNU General Public License v3.0
174 stars 54 forks source link

Feature request: cache results #24

Open XioNoX opened 6 years ago

XioNoX commented 6 years ago

It would be useful to be able to locally cache the results, for at least --list and possibly --host.

With a variable like "refresh_cache:" (1d, 1h, etc...) in netbox.yml to download fresh data once in a while. As well as a netbox.py --refresh-cache option to force the download of fresh data.

Similar to http://docs.ansible.com/ansible/latest/user_guide/intro_dynamic_inventory.html#refresh-the-cache