Gather ansible_default_ipv4 for specific groups (#6318)
This commit is contained in:
parent
8ca2a9a7d5
commit
16ad344c41
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
||||||
tags: always
|
tags: always
|
||||||
include_tasks: fallback_ips_gather.yml
|
include_tasks: fallback_ips_gather.yml
|
||||||
when: hostvars[delegate_host_to_gather_facts].ansible_default_ipv4 is not defined
|
when: hostvars[delegate_host_to_gather_facts].ansible_default_ipv4 is not defined
|
||||||
loop: "{{ groups['all'] }}"
|
loop: "{{ groups['k8s-cluster']|default([]) + groups['etcd']|default([]) + groups['calico-rr']|default([]) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: delegate_host_to_gather_facts
|
loop_var: delegate_host_to_gather_facts
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
|
Loading…
Reference in a new issue