Skip to content

Commit a8b892c

Browse files
committed
minor fix in 23.backup.yml
1 parent 6724ebb commit a8b892c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

23.backup.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- hosts:
55
- localhost
66
tasks:
7-
# 寻找etcd集群中第一个健康节点
7+
# step1: find a healthy member in the etcd cluster
88
- name: set NODE_IPS of the etcd cluster
99
set_fact: NODE_IPS="{% for host in groups['etcd'] %}{{ host }} {% endfor %}"
1010

@@ -18,6 +18,7 @@
1818
endpoint health; \
1919
done'
2020
register: ETCD_CLUSTER_STATUS
21+
ignore_errors: true
2122

2223
- debug: var="ETCD_CLUSTER_STATUS.stdout"
2324

@@ -27,15 +28,15 @@
2728

2829
- debug: var="RUNNING_NODE.stdout"
2930

30-
# 在健康etcd节点上执行数据备份
31-
- name: 执行etcd 数据备份
31+
# step2: backup data on the healthy member
32+
- name: make a backup on etcd node
3233
shell: "mkdir -p /etcd_backup && cd /etcd_backup && \
3334
ETCDCTL_API=3 {{ bin_dir }}/etcdctl snapshot save snapshot.db"
3435
args:
3536
warn: false
3637
delegate_to: "{{ RUNNING_NODE.stdout }}"
3738

38-
- name: 获取etcd 数据备份
39+
- name: fetch the backup data
3940
fetch:
4041
src: /etcd_backup/snapshot.db
4142
dest: "{{ base_dir }}/.cluster/backup/"

0 commit comments

Comments
 (0)