2016-05-27 17:55:52 +08:00
|
|
|
---
|
|
|
|
- name: Configure | Check if cluster is healthy
|
2016-10-21 03:56:52 +08:00
|
|
|
shell: "{{ bin_dir }}/etcdctl --peers={{ etcd_access_addresses }} cluster-health | grep -q 'cluster is healthy'"
|
2016-05-27 17:55:52 +08:00
|
|
|
register: etcd_cluster_is_healthy
|
|
|
|
ignore_errors: true
|
|
|
|
changed_when: false
|
|
|
|
when: is_etcd_master
|
2016-12-08 21:36:00 +08:00
|
|
|
tags: facts
|