verify_cluster_health.yml 215 B

123456789
  1. ---
  2. - name: Verify cluster is healthy
  3. command: "{{ etcdctlv2 }} cluster-health"
  4. register: cluster_health
  5. retries: 30
  6. delay: 6
  7. until:
  8. - cluster_health.rc == 0
  9. - ('stopped' not in cluster_health.stderr)