mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-12-02 07:47:58 +00:00
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:
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"
|
||||
|
||||
Reference in new issue
Block a user