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.
This commit is contained in:
kevinveenbirkenbach committed 2026-06-05 11:12:13 +02:00
1 parent df254bfe96
commit be553dfd74
1 file changed
+1
@@ -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"