We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bc9965 commit 189e9f2Copy full SHA for 189e9f2
user-skel/ansible_collections/ace_box/ace_box/roles/health-check/tasks/main.yml
@@ -25,6 +25,9 @@
25
- name: Check application availability with curl
26
command: "curl -o /dev/null -s -w \"%{http_code}\" {{ app_url }}"
27
register: curl_response
28
+ until: curl_response.rc == 0 and curl_response.stdout | int in range(200, 400)
29
+ retries: 5
30
+ delay: 10
31
failed_when: curl_response.rc != 0
32
33
# - name: Debug the curl response
0 commit comments