diff --git a/update_uptime_kuma.yml b/update_uptime_kuma.yml index 4db2a17..1c6aff1 100644 --- a/update_uptime_kuma.yml +++ b/update_uptime_kuma.yml @@ -1,7 +1,7 @@ # update_uptimekuma.yml - name: Update Uptime Kuma - hosts: pve2_vm + hosts: pve1_vm gather_facts: false vars: @@ -80,7 +80,12 @@ port: "{{ uptimekuma_port }}" timeout: 120 - - name: Check Uptime Kuma HTTP endpoint + - name: Check Uptime Kuma HTTP endpoint (retry until ready) ansible.builtin.uri: url: "http://127.0.0.1:{{ uptimekuma_port }}/" status_code: 200 + register: kuma_http + retries: 30 + delay: 3 + until: kuma_http.status == 200 + changed_when: false \ No newline at end of file