2016-05-27 09:55:52 +00:00
|
|
|
---
|
|
|
|
- name: Configure | Check if cluster is healthy
|
2017-11-14 11:28:35 +00:00
|
|
|
shell: "{{ bin_dir }}/etcdctl --endpoints={{ etcd_access_addresses }} cluster-health | grep -q 'cluster is healthy'"
|
2016-05-27 09:55:52 +00:00
|
|
|
register: etcd_cluster_is_healthy
|
2017-06-29 18:13:02 +00:00
|
|
|
ignore_errors: true
|
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
|
2017-10-05 07:43:04 +00:00
|
|
|
tags:
|
|
|
|
- facts
|
2017-11-07 14:06:16 +00:00
|
|
|
environment:
|
|
|
|
ETCDCTL_CERT_FILE: "{{ etcd_cert_dir }}/node-{{ inventory_hostname }}.pem"
|
|
|
|
ETCDCTL_KEY_FILE: "{{ etcd_cert_dir }}/node-{{ inventory_hostname }}-key.pem"
|