From 235f53ac0d26f8510940c18eb16bbf34cc958a58 Mon Sep 17 00:00:00 2001 From: Qasim Sarfraz Date: Fri, 26 Jun 2020 08:55:31 +0200 Subject: [PATCH] Gather ansible_default_ipv4 for specific groups (#6318) --- roles/kubespray-defaults/tasks/fallback_ips.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubespray-defaults/tasks/fallback_ips.yml b/roles/kubespray-defaults/tasks/fallback_ips.yml index ad8523db89b..291bd3fccfe 100644 --- a/roles/kubespray-defaults/tasks/fallback_ips.yml +++ b/roles/kubespray-defaults/tasks/fallback_ips.yml @@ -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