I am looking for a way for below to cause a failure, if the health check 
fails to see an "UP" message after 10 attempts.

- name: health check - wait for endpoints to become available
  action: shell curl http://endpoint/health";
  register: curl_output
  until: curl_output.stdout.find("UP") > -1
  changed_when: false
  retries: 10
  delay: 10


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5c72ac11-ecb7-4574-8fb7-d995152a0f38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to