I may try to check the value of "attempts", and fail the task if we reach 10 attempts.
On Friday, 18 December 2015 12:01:23 UTC, jepper wrote: > > 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/a6fd8246-8a59-4436-ad2b-816a9829516a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
