Merge pull request #3066 from luisyonaldo/fix-conditional

fix bad conditional
This commit is contained in:
Andreas Krüger 2018-08-10 10:38:52 +02:00 committed by GitHub
commit d8e77600e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
- name: Set kubeadm_discovery_address - name: Set kubeadm_discovery_address
set_fact: set_fact:
kubeadm_discovery_address: >- 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 }} {{ first_kube_master }}:{{ kube_apiserver_port }}
{%- else -%} {%- else -%}
{{ kube_apiserver_endpoint }} {{ kube_apiserver_endpoint }}