Wait for Gokapi's healthcheck on first run
The 'Gokapi started' log line is not always flushed to log.txt, so the first-run wait timed out even though the super admin had been created. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -47,10 +47,12 @@
|
||||
no_log: true
|
||||
|
||||
- name: Wait for the one-off gokapi to finish starting
|
||||
ansible.builtin.wait_for:
|
||||
path: /opt/stacks/gokapi/data/log.txt
|
||||
search_regex: Gokapi started
|
||||
timeout: 60
|
||||
ansible.builtin.command: docker inspect -f '{{ "{{" }}.State.Health.Status{{ "}}" }}' gokapi-init
|
||||
register: gokapi_init_health
|
||||
until: gokapi_init_health.stdout == "healthy"
|
||||
retries: 30
|
||||
delay: 3
|
||||
changed_when: false
|
||||
always:
|
||||
- name: Stop the one-off gokapi
|
||||
ansible.builtin.command: docker rm -f gokapi-init
|
||||
|
||||
Reference in New Issue
Block a user