facts: only look up cluster nodes when deploying to members

And not when deploying to virtual machines running on a cluster.
This commit is contained in:
Timotej Lazar 2024-09-04 16:56:56 +02:00
parent 17c8e84498
commit a8b83e833b

View file

@ -8,7 +8,7 @@
prefixes: '{{ query("netbox.netbox.nb_lookup", "prefixes", raw_data=true)
| sort(attribute="prefix") | sort(attribute="family.value") }}'
- when: 'cluster is defined'
- when: 'cluster is defined and not is_virtual'
block:
- name: Get my cluster and all nodes in it
set_fact: