Skip to content

Commit

Permalink
Gather ansible_default_ipv4 for specific groups (kubernetes-sigs#6318)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qasim Sarfraz authored and LuckySB committed Jun 29, 2020
1 parent 41ecddd commit 235f53a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/kubespray-defaults/tasks/fallback_ips.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
tags: always
include_tasks: fallback_ips_gather.yml
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_var: delegate_host_to_gather_facts
run_once: yes
Expand Down

0 comments on commit 235f53a

Please sign in to comment.