facts: only look up prefixes and VLANs once
Not once per host.
This commit is contained in:
parent
d2b9b05406
commit
a1c7be8184
|
@ -3,6 +3,7 @@
|
|||
delegate_to: localhost
|
||||
block:
|
||||
- name: Lookup networks and prefixes
|
||||
run_once: true
|
||||
set_fact:
|
||||
vlans: '{{ query("netbox.netbox.nb_lookup", "vlans", api_filter="group=new-net", raw_data=true)
|
||||
| sort(attribute="vid") }}'
|
||||
|
|
Loading…
Reference in a new issue