fix(swarm): gate the post-deploy converge wait on the effective role mode

cdf544c35 switched the gate to compose_mode, but post_deploy.yml runs in
roleless include_tasks contexts where the sys-svc-compose defaults are
not in scope, so every compose deploy died with 'compose_mode is
undefined'. Use the compose_mode_force-or-DEPLOYMENT_MODE resolution the
lookup plugins and deploy.yml.j2 already apply.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Fable 5 committed 2026-07-12 09:41:19 +02:00
1 parent 577185035c
commit d130f55596
1 file changed
+1 -1
@@ -22,4 +22,4 @@
delay: 2
changed_when: false
until: _swarm_tasks_ready is succeeded
when: compose_mode == 'swarm'
when: (compose_mode_force | default('') or DEPLOYMENT_MODE) == 'swarm'