From 45aa32e397fd9cff7fe188b0cda2b33d83f6c8f3 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 26 Jun 2026 21:52:41 +0200 Subject: [PATCH] fix(svc-db-redis): run the readiness checks once on the stack host The redis wait-until-running + PING checks exec via REDIS_CONTAINER_ADDRESS (resolve-container-id, manager-only). Ungated they ran on every node, so on workers resolve-container-id exits 'must run on a Swarm manager node' and the checks fail (broke svc-bkp-container-2-local). Gate them to the stack host with delegate_to + run_once, mirroring svc-db-postgres. Co-Authored-By: Claude Opus 4.8 --- roles/svc-db-redis/tasks/01_core.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/svc-db-redis/tasks/01_core.yml b/roles/svc-db-redis/tasks/01_core.yml index 36ab08b8c9..96f2dd54ca 100644 --- a/roles/svc-db-redis/tasks/01_core.yml +++ b/roles/svc-db-redis/tasks/01_core.yml @@ -13,6 +13,8 @@ ansible.builtin.shell: > container inspect --format '{{ "{{.State.Status}}" }} {{ "{{.State.Restarting}}" }}' {{ REDIS_CONTAINER_ADDRESS }} register: redis_state + delegate_to: "{{ STACK_HOST }}" + run_once: true retries: 120 delay: 2 until: > @@ -25,6 +27,8 @@ {{ REDIS_EXEC_SHELL }} '{{ REDIS_CLI }} ping' register: redis_ping_ready + delegate_to: "{{ STACK_HOST }}" + run_once: true retries: 30 delay: 2 until: redis_ping_ready.stdout is search('PONG')