Move old etcd backup removal after etcd restart (#9147)

This commit is contained in:
emiran-orange
2022-08-05 17:09:59 +02:00
committed by GitHub
parent 24f12b024d
commit 2b97b661d8
3 changed files with 14 additions and 7 deletions

View File

@@ -6,6 +6,7 @@
- etcd | reload systemd
- reload etcd
- wait for etcd up
- Cleanup etcd backups
- name: restart etcd-events
command: /bin/true
@@ -43,6 +44,8 @@
retries: 60
delay: 1
- import_tasks: backup_cleanup.yml
- name: wait for etcd-events up
uri:
url: "https://{% if is_etcd_master %}{{ etcd_address }}{% else %}127.0.0.1{% endif %}:2383/health"