Rename _requires_restart to _migration_requires_restart across all custom roles
These variables track whether a database migration necessitates a service restart. The new name avoids confusion with the conditional restart feature introduced in af193043/9accc848/4a8df138, where devture_systemd_service_manager handles restarting services whose configuration or image changed. The old _requires_restart name was ambiguous — it could be mistaken for the systemd_service_manager mechanism — so _migration_requires_restart makes the purpose explicit. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -16,10 +16,10 @@
|
||||
when: "matrix_synapse_role_executed|default(False)"
|
||||
|
||||
- ansible.builtin.set_fact:
|
||||
matrix_mautrix_wsproxy_requires_restart: false
|
||||
matrix_mautrix_wsproxy_migration_requires_restart: false
|
||||
|
||||
- ansible.builtin.set_fact:
|
||||
matrix_mautrix_wsproxy_syncproxy_requires_restart: false
|
||||
matrix_mautrix_wsproxy_syncproxy_migration_requires_restart: false
|
||||
|
||||
- name: Ensure Mautrix wsproxy paths exist
|
||||
ansible.builtin.file:
|
||||
@@ -121,7 +121,7 @@
|
||||
ansible.builtin.service:
|
||||
name: "matrix-mautrix-wsproxy.service"
|
||||
state: restarted
|
||||
when: "matrix_mautrix_wsproxy_requires_restart|bool"
|
||||
when: "matrix_mautrix_wsproxy_migration_requires_restart|bool"
|
||||
|
||||
- name: Ensure matrix-mautrix-wsproxy-syncproxy.service installed
|
||||
ansible.builtin.template:
|
||||
@@ -139,4 +139,4 @@
|
||||
ansible.builtin.service:
|
||||
name: "matrix-mautrix-wsproxy-syncproxy.service"
|
||||
state: restarted
|
||||
when: "matrix_mautrix_wsproxy_syncproxy_requires_restart|bool"
|
||||
when: "matrix_mautrix_wsproxy_syncproxy_migration_requires_restart|bool"
|
||||
|
||||
Reference in New Issue
Block a user