fix parsing refresh of kubeadm cert key (#4971)
* fix parsing refresh of kubeadm cert key Change-Id: I4de2a1df6498790a80351b4bc7d88e6c9e470358 * Update kubeadm-secondary-experimental.yml
This commit is contained in:
parent
76640cf1a1
commit
b15b6e834f
1 changed files with 4 additions and 2 deletions
|
@ -30,8 +30,10 @@
|
|||
- name: Parse certificate key if not set
|
||||
set_fact:
|
||||
kubeadm_certificate_key: "{{ hostvars[groups['kube-master'][0]]['kubeadm_upload_cert'].stdout_lines[-1] | trim }}"
|
||||
when: kubeadm_certificate_key is undefined
|
||||
|
||||
run_once: yes
|
||||
when:
|
||||
- hostvars[groups['kube-master'][0]]['kubeadm_upload_cert'] is defined
|
||||
- hostvars[groups['kube-master'][0]]['kubeadm_upload_cert'] is not skipped
|
||||
|
||||
- name: Create kubeadm ControlPlane config
|
||||
template:
|
||||
|
|
Loading…
Reference in a new issue