New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add inventory cache to the netbox plugin #57644
Conversation
I'm not seeing the caching affect. Can you specify what I need in order for the caching to work? |
The manual is here: https://docs.ansible.com/ansible/latest/plugins/cache.html I'm using this in my setup in
|
shipit |
@steffann thanks for the effort we would be really happy to see this in the next Ansible release, would you mind rebasing your PR so it hopefully will get merged ? Thanks Martin |
I think it will be great to add --flush-cache option for ansible-inventory and ansible command after this |
@steffann this PR contains the following merge commits: Please rebase your branch to remove these commits. |
@steffann This PR was evaluated as a potentially problematic PR for the following reasons:
Such PR can only be merged by human. Contact a Core team member to review this PR on IRC: |
Apologies, that was a bit of a mess. Clean patch available now. |
rebuild_merge |
SUMMARY
The netbox inventory plugin can be quite slow, especially when config_context is enabled. This
patch adds caching support to the plugin so that delays can be minimised.
ISSUE TYPE
COMPONENT NAME
netbox
ADDITIONAL INFORMATION