From 16462292e127bcd79065cacfd97bdd7d9dc35b5d Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Wed, 18 Oct 2017 12:04:13 +0100 Subject: [PATCH] Properly skip extra SANs when not specified for kubeadm (#1831) --- roles/kubernetes/master/tasks/kubeadm-setup.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/kubernetes/master/tasks/kubeadm-setup.yml b/roles/kubernetes/master/tasks/kubeadm-setup.yml index b861961dc..2720b2c7a 100644 --- a/roles/kubernetes/master/tasks/kubeadm-setup.yml +++ b/roles/kubernetes/master/tasks/kubeadm-setup.yml @@ -54,11 +54,11 @@ {%- if hostvars[host]['access_ip'] is defined %}{{ hostvars[host]['access_ip'] }}{% endif %} {{ hostvars[host]['ip'] | default(hostvars[host]['ansible_default_ipv4']['address']) }} {%- endfor %} - {% if supplementary_addresses_in_ssl_keys is defined %} - {% for addr in supplementary_addresses_in_ssl_keys %} + {%- if supplementary_addresses_in_ssl_keys is defined %} + {%- for addr in supplementary_addresses_in_ssl_keys %} {{ addr }} - {% endfor %} - {% endif %} + {%- endfor %} + {%- endif %} tags: facts - name: kubeadm | Copy etcd cert dir under k8s cert dir