Restart etcd if the etcd version changes (#8556)

Signed-off-by: Mac Chaffee <me@macchaffee.com>
This commit is contained in:
Mac Chaffee
2022-03-11 21:08:23 -05:00
committed by GitHub
parent 4b6892ece9
commit 512d5e3348
3 changed files with 49 additions and 8 deletions

View File

@@ -47,17 +47,13 @@
when: is_etcd_master
- name: Restart etcd if certs changed
service:
name: etcd
state: restarted
enabled: yes
command: /bin/true
notify: restart etcd
when: is_etcd_master and etcd_cluster_setup and etcd_secret_changed|default(false)
- name: Restart etcd-events if certs changed
service:
name: etcd-events
state: restarted
enabled: yes
command: /bin/true
notify: restart etcd
when: is_etcd_master and etcd_events_cluster_setup and etcd_secret_changed|default(false)
# After etcd cluster is assembled, make sure that