Skip to content

Commit

Permalink
Merge pull request #3066 from luisyonaldo/fix-conditional
Browse files Browse the repository at this point in the history
fix bad conditional
  • Loading branch information
woopstar authored Aug 10, 2018
2 parents e3dcd96 + fd38061 commit d8e7760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/kubernetes/kubeadm/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit d8e7760

Please sign in to comment.