mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-10-23 06:44:15 +00:00
With Synapse workers enabled, inject_worker.yml appends each worker's service to devture_systemd_service_manager_services_list_auto with set_fact. That templates the whole list, including every service's restart_necessary value, when the matrix-synapse role initializes, and the resulting fact outranks group_vars. Services whose restart flag is set after that point are then only started, not restarted, on install-* runs even when their configuration changed. That includes the matrix-synapse role's own reverse-proxy companion, Goofys and S3 storage provider timer, and the services of every later role that sets a restart flag (Element, Grafana, Prometheus, Traefik and others). Collect worker services in matrix_synapse_worker_systemd_services_list and append it to the auto list in group_vars/matrix_servers, like the other entries there, so the list stays lazy. Include inject_worker.yml once and loop inside each task instead of including it once per worker. With 19 workers this cuts the step from 26.2 s to 5.3 s on ansible-core 2.20.1 (controller-only, one run). Also fix two stream-writer failure messages that referenced the undefined `item`, and report all missing worker properties in one message.