Skip to content
Snippets Groups Projects
Commit 338eb4ce authored by Matthew Mosesohn's avatar Matthew Mosesohn Committed by Kubernetes Prow Robot
Browse files

Fix kubeadm upload certs with when condition (#4659)

* Fix kubeadm upload certs with when condition

Change-Id: I916dd2375b71eea2386047c7f185a2f8361f7a61

* Update kubeadm-secondary-experimental.yml
parent 009e208b
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment