2016-05-27 09:55:52 +00:00
|
|
|
---
|
|
|
|
- name: Configure | Check if cluster is healthy
|
2016-10-20 19:56:52 +00:00
|
|
|
shell: "{{ bin_dir }}/etcdctl --peers={{ etcd_access_addresses }} cluster-health | grep -q 'cluster is healthy'"
|
2016-05-27 09:55:52 +00:00
|
|
|
register: etcd_cluster_is_healthy
|
2016-12-27 11:38:54 +00:00
|
|
|
failed_when: false
|
2016-05-27 09:55:52 +00:00
|
|
|
changed_when: false
|
2017-02-06 18:13:21 +00:00
|
|
|
check_mode: no
|
2016-05-27 09:55:52 +00:00
|
|
|
when: is_etcd_master
|
2016-12-08 13:36:00 +00:00
|
|
|
tags: facts
|