network/group_vars/all/vars.yml

2 lines
124 B
YAML

vlans: "{{ query('netbox.netbox.nb_lookup', 'vlans', api_filter='group=new-net', raw_data=true) | sort(attribute='vid') }}"