mirror of https://github.com/easzlab/kubeasz.git
fix 备份etcd脚本
parent
18710e146b
commit
2b131f11f9
|
@ -20,10 +20,10 @@
|
|||
register: ETCD_CLUSTER_STATUS
|
||||
ignore_errors: true
|
||||
|
||||
- debug: var="ETCD_CLUSTER_STATUS.stdout"
|
||||
- debug: var="ETCD_CLUSTER_STATUS"
|
||||
|
||||
- name: get a running ectd node
|
||||
shell: 'echo -e "{{ ETCD_CLUSTER_STATUS.stdout }}"|grep "is healthy"|sed -n "1p"|cut -d: -f2|cut -d/ -f3'
|
||||
shell: 'echo -e "{{ ETCD_CLUSTER_STATUS.stdout }} {{ ETCD_CLUSTER_STATUS.stderr }}"|grep "is healthy"|sed -n "1p"|cut -d: -f2|cut -d/ -f3'
|
||||
register: RUNNING_NODE
|
||||
|
||||
- debug: var="RUNNING_NODE.stdout"
|
||||
|
|
|
@ -19,9 +19,7 @@
|
|||
done'
|
||||
register: ETCD_CLUSTER_STATUS
|
||||
|
||||
- debug: var="ETCD_CLUSTER_STATUS.stdout"
|
||||
|
||||
- debug: var="ETCD_CLUSTER_STATUS.stderr"
|
||||
- debug: var="ETCD_CLUSTER_STATUS"
|
||||
|
||||
- name: get a running ectd node
|
||||
shell: 'echo -e "{{ ETCD_CLUSTER_STATUS.stdout }}" \
|
||||
|
|
|
@ -32,9 +32,7 @@
|
|||
register: ETCD_CLUSTER_STATUS
|
||||
ignore_errors: true
|
||||
|
||||
- debug: var="ETCD_CLUSTER_STATUS.stdout"
|
||||
|
||||
- debug: var="ETCD_CLUSTER_STATUS.stderr"
|
||||
- debug: var="ETCD_CLUSTER_STATUS"
|
||||
|
||||
- name: get a running ectd node
|
||||
shell: 'echo -e "{{ ETCD_CLUSTER_STATUS.stdout }}" \
|
||||
|
|
Loading…
Reference in New Issue