c12s-kubespray/roles/etcd/tasks/set_cluster_health.yml
2017-06-29 20:13:02 +02:00

9 lines
301 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
ignore_errors: true
changed_when: false
check_mode: no
when: is_etcd_master
tags: facts