dsk-dev kubespray 이동
This commit is contained in:
11
ansible/kubespray/roles/etcd/handlers/backup_cleanup.yml
Normal file
11
ansible/kubespray/roles/etcd/handlers/backup_cleanup.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: Cleanup etcd backups
|
||||
command: /bin/true
|
||||
notify:
|
||||
- Remove old etcd backups
|
||||
|
||||
- name: Remove old etcd backups
|
||||
shell:
|
||||
chdir: "{{ etcd_backup_prefix }}"
|
||||
cmd: "find . -name 'etcd-*' -type d | sort -n | head -n -{{ etcd_backup_retention_count }} | xargs rm -rf"
|
||||
when: etcd_backup_retention_count >= 0
|
||||
Reference in New Issue
Block a user