fix parsing refresh of kubeadm cert key (#4971)
* fix parsing refresh of kubeadm cert key Change-Id: I4de2a1df6498790a80351b4bc7d88e6c9e470358 * Update kubeadm-secondary-experimental.ymlpull/4977/head
parent
76640cf1a1
commit
b15b6e834f
|
@ -30,8 +30,10 @@
|
||||||
- name: Parse certificate key if not set
|
- name: Parse certificate key if not set
|
||||||
set_fact:
|
set_fact:
|
||||||
kubeadm_certificate_key: "{{ hostvars[groups['kube-master'][0]]['kubeadm_upload_cert'].stdout_lines[-1] | trim }}"
|
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
|
- name: Create kubeadm ControlPlane config
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in New Issue