5b08697679
Small fix. The shell module won't automatically resolve the path to the etcdctl binary, so i prefixed with {{ bin_dir }}/
7 lines
270 B
YAML
7 lines
270 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
|
|
when: is_etcd_master
|