forked from jakub/ansible
.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user