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:
Luca Marsella
2026-10-29 10:46:47 +00:00
committed by GitHub
parent ef0be3345c
commit a3d30ad42c
2 changed files with 5 additions and 2 deletions
+1 -2
View File
@@ -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
+4
View File
@@ -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"