Fix kubeadm upload certs with when condition (#4659)

* Fix kubeadm upload certs with when condition

Change-Id: I916dd2375b71eea2386047c7f185a2f8361f7a61

* Update kubeadm-secondary-experimental.yml
This commit is contained in:
Matthew Mosesohn 2019-04-27 11:14:20 +03:00 committed by Kubernetes Prow Robot
parent 009e208bcd
commit 338eb4ce65

View file

@ -34,9 +34,9 @@
{% if kubeadm_certificate_key is defined %}
--certificate-key={{ kubeadm_certificate_key }}
{% endif %}
run_once: yes
register: kubeadm_upload_cert
delegate_to: "{{ groups['kube-master'][0] }}"
when:
- inventory_hostname == groups['kube-master']|first
- name: Parse certificate key if not set
set_fact: