fix(remnawave): healthcheck subscription через docker health
ansible-core-net / deploy (push) Successful in 12s

Корень / рвёт коннект без Traefik+shortUuid; официальный probe —
/internal/health внутри контейнера (State.Health.Status).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
karpenokandCursor committed 2026-11-11 22:58:35 +07:00
1 parent dd19301c33
commit 6aa2b26f47
1 file changed
+9 -6
@@ -276,14 +276,17 @@
'Recreated' in remnawave_sub_up.stderr or
'Pulled' in remnawave_sub_up.stderr
- name: Дождаться subscription-page
ansible.builtin.uri:
url: "http://127.0.0.1:{{ remnawave_subscription_port }}/"
status_code: [200, 404]
# Корень / за ProxyCheck рвёт коннект без proxy-заголовков; через Traefik
# без shortUuid тоже 502. Официальный probe — /internal/health внутри контейнера
# (docker HEALTHCHECK). С хоста проверяем State.Health.Status.
- name: Дождаться subscription-page (docker health)
ansible.builtin.shell: |
docker inspect remnawave-subscription-page --format '{% raw %}{{if .State.Health}}{{.State.Health.Status}}{{else}}{{.State.Status}}{{end}}{% endraw %}'
register: remnawave_sub_health
retries: 20
changed_when: false
retries: 30
delay: 2
until: remnawave_sub_health.status in [200, 404]
until: (remnawave_sub_health.stdout | trim) == 'healthy'
- name: Итог Remnawave panel
ansible.builtin.debug: