fix bad conditional

This commit is contained in:
Luis Nuñez 2018-08-07 12:25:31 +02:00 committed by Luis Nunez
parent 280d6cac1a
commit fd380615a0

View file

@ -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 }}