From fd380615a0207a57d5e92562d7cfb99f55713ce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Nu=C3=B1ez?= Date: Tue, 7 Aug 2018 12:25:31 +0200 Subject: [PATCH] fix bad conditional --- roles/kubernetes/kubeadm/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/kubeadm/tasks/main.yml b/roles/kubernetes/kubeadm/tasks/main.yml index d6af13fcd..f6addc5a8 100644 --- a/roles/kubernetes/kubeadm/tasks/main.yml +++ b/roles/kubernetes/kubeadm/tasks/main.yml @@ -2,7 +2,7 @@ - name: Set kubeadm_discovery_address set_fact: kubeadm_discovery_address: >- - {%- if "127.0.0.1" or "localhost" in kube_apiserver_endpoint -%} + {%- if "127.0.0.1" in kube_apiserver_endpoint or "localhost" in kube_apiserver_endpoint -%} {{ first_kube_master }}:{{ kube_apiserver_port }} {%- else -%} {{ kube_apiserver_endpoint }}