From 32a54534732d0bc389759dbb0a2ac0b19a3cd6d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Skrzy=C5=84ski?= Date: Mon, 21 Nov 2016 19:36:05 +0100 Subject: [PATCH] Fix conditional when setting loadbalancer_apiserver_localhost --- roles/kubernetes/preinstall/tasks/set_facts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/preinstall/tasks/set_facts.yml b/roles/kubernetes/preinstall/tasks/set_facts.yml index aec296c6e..d85f0f722 100644 --- a/roles/kubernetes/preinstall/tasks/set_facts.yml +++ b/roles/kubernetes/preinstall/tasks/set_facts.yml @@ -6,7 +6,7 @@ - set_fact: first_kube_master="{{ hostvars[groups['kube-master'][0]]['access_ip'] | default(hostvars[groups['kube-master'][0]]['ip'] | default(hostvars[groups['kube-master'][0]]['ansible_default_ipv4']['address'])) }}" - set_fact: loadbalancer_apiserver_localhost: false - when: loadbalancer_apiserver is defined + when: loadbalancer_apiserver is defined - set_fact: kube_apiserver_endpoint: |- {% if not is_kube_master and loadbalancer_apiserver_localhost -%}