79996b557b
Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
8 lines
283 B
YAML
8 lines
283 B
YAML
---
|
|
- name: Configure | Check if cluster is healthy
|
|
shell: "{{ bin_dir }}/etcdctl --peers={{ etcd_access_addresses }} cluster-health | grep -q 'cluster is healthy'"
|
|
register: etcd_cluster_is_healthy
|
|
failed_when: false
|
|
changed_when: false
|
|
when: is_etcd_master
|
|
tags: facts
|