mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-29 22:03:22 -02:30
fix(etcd): default etcd_secret_changed to false (#13691)
etcd_secret_changed is only set by check_certs.yml, which runs only when cert_management is "script". With cert_management set to "none", the "Restart etcd if certs changed" tasks fail because the variable is undefined. Signed-off-by: Luca Marsella <marsluca7@gmail.com>
This commit is contained in:
@@ -8,11 +8,10 @@
|
||||
register: etcdcert_master
|
||||
run_once: true
|
||||
|
||||
- name: "Check_certs | Set default value for 'sync_certs', 'gen_certs' and 'etcd_secret_changed' to false"
|
||||
- name: "Check_certs | Set default value for 'sync_certs' and 'gen_certs' to false"
|
||||
set_fact:
|
||||
sync_certs: false
|
||||
gen_certs: false
|
||||
etcd_secret_changed: false
|
||||
etcd_member_requires_sync: false
|
||||
kubernetes_host_requires_sync: false
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
---
|
||||
- name: Set default value for 'etcd_secret_changed' to false
|
||||
set_fact:
|
||||
etcd_secret_changed: false
|
||||
|
||||
- name: Check etcd certs
|
||||
include_tasks: check_certs.yml
|
||||
when: cert_management == "script"
|
||||
|
||||
Reference in New Issue
Block a user