3
0
forked from jakub/ansible
This commit is contained in:
martin.fencl
2026-02-03 18:41:51 +01:00
parent cbedeca846
commit 165b8f1a4e

View File

@@ -1,7 +1,7 @@
# update_uptimekuma.yml # update_uptimekuma.yml
- name: Update Uptime Kuma - name: Update Uptime Kuma
hosts: pve2_vm hosts: pve1_vm
gather_facts: false gather_facts: false
vars: vars:
@@ -80,7 +80,12 @@
port: "{{ uptimekuma_port }}" port: "{{ uptimekuma_port }}"
timeout: 120 timeout: 120
- name: Check Uptime Kuma HTTP endpoint - name: Check Uptime Kuma HTTP endpoint (retry until ready)
ansible.builtin.uri: ansible.builtin.uri:
url: "http://127.0.0.1:{{ uptimekuma_port }}/" url: "http://127.0.0.1:{{ uptimekuma_port }}/"
status_code: 200 status_code: 200
register: kuma_http
retries: 30
delay: 3
until: kuma_http.status == 200
changed_when: false