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
- name: Gather the service facts
ansible.builtin.service_facts:
This one stores in fact cache all service data in 'services' dict. But in the same way netbox inventory stores service data from netbox in same 'services' list. So it means that you cannot use fact cache for host services and service data from netbox in same time.
var-naming[no-reserved]: Variables names must not be Ansible reserved names.
var-naming[no-role-prefix]: Variables names from within roles should use role_name_ as a prefix. Underlines are accepted before the prefix.
Observed Behavior
'services' dict from fact cache used instead 'services' list from host vars
The text was updated successfully, but these errors were encountered:
Ansible NetBox Collection version
v3.17.0
Ansible version
2.15.10
NetBox version
v3.7.8
Python version
3.9
Steps to Reproduce
Just enable fact cache and perform host service data gathering with ansible as stated here https://docs.ansible.com/ansible/latest/collections/ansible/builtin/service_facts_module.html
This one stores in fact cache all service data in 'services' dict. But in the same way netbox inventory stores service data from netbox in same 'services' list. So it means that you cannot use fact cache for host services and service data from netbox in same time.
Expected Behavior
Instead of 'services' variable netbox inventory should put data to lets say 'netbox_services' or better, as stated here https://ansible.readthedocs.io/projects/lint/rules/var-naming/ -
Observed Behavior
'services' dict from fact cache used instead 'services' list from host vars
The text was updated successfully, but these errors were encountered: