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:
parent
17c8e84498
commit
a8b83e833b
|
@ -8,7 +8,7 @@
|
||||||
prefixes: '{{ query("netbox.netbox.nb_lookup", "prefixes", raw_data=true)
|
prefixes: '{{ query("netbox.netbox.nb_lookup", "prefixes", raw_data=true)
|
||||||
| sort(attribute="prefix") | sort(attribute="family.value") }}'
|
| sort(attribute="prefix") | sort(attribute="family.value") }}'
|
||||||
|
|
||||||
- when: 'cluster is defined'
|
- when: 'cluster is defined and not is_virtual'
|
||||||
block:
|
block:
|
||||||
- name: Get my cluster and all nodes in it
|
- name: Get my cluster and all nodes in it
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
Loading…
Reference in a new issue