From be553dfd74d7fd6d35736542eff92aa97b0d7fcc Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 5 Jun 2026 10:56:37 +0200 Subject: [PATCH] fix(web-app-bigbluebutton): gate websocket_upgrade.conf to manager The `configure websocket_upgrade.conf` task writes into the openresty maps directory. The directory only exists on the host that runs openresty. In compose mode that is every host (single-host), in swarm mode only the swarm manager. Without a gate the task fires on workers where /etc/nginx/conf.d/maps does not exist and the deploy aborts. Gate the copy with `when: SWARM_MANAGER_ACTIVE | bool` so it runs on every host in compose mode (the fact stays true when DEPLOYMENT_MODE \!= 'swarm') and only on the manager in swarm mode. The `restart openresty` handler is queued by the same task, so workers do not try to restart a service they do not run. --- roles/web-app-bigbluebutton/tasks/01_core.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/web-app-bigbluebutton/tasks/01_core.yml b/roles/web-app-bigbluebutton/tasks/01_core.yml index 54176f9c18..1cb1472d50 100644 --- a/roles/web-app-bigbluebutton/tasks/01_core.yml +++ b/roles/web-app-bigbluebutton/tasks/01_core.yml @@ -35,6 +35,7 @@ copy: src: "websocket_upgrade.conf" dest: "{{ [ lookup('nginx','directories.configuration.maps'), 'websocket_upgrade.conf' ] | path_join }}" + when: SWARM_MANAGER_ACTIVE | bool notify: restart openresty - name: "Set BBB Facts"