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:
@@ -6,7 +6,7 @@
|
||||
---
|
||||
|
||||
- ansible.builtin.set_fact:
|
||||
matrix_mautrix_meta_messenger_requires_restart: false
|
||||
matrix_mautrix_meta_messenger_migration_requires_restart: false
|
||||
|
||||
- when: "matrix_mautrix_meta_messenger_database_engine == 'postgres'"
|
||||
block:
|
||||
@@ -30,7 +30,7 @@
|
||||
systemd_services_to_stop: "{{ [matrix_mautrix_meta_messenger_identifier + '.service'] }}"
|
||||
|
||||
- ansible.builtin.set_fact:
|
||||
matrix_mautrix_meta_messenger_requires_restart: true
|
||||
matrix_mautrix_meta_messenger_migration_requires_restart: true
|
||||
|
||||
- name: Ensure mautrix-meta-messenger container image is pulled
|
||||
community.docker.docker_image:
|
||||
@@ -125,4 +125,4 @@
|
||||
name: "{{ matrix_mautrix_meta_messenger_identifier }}.service"
|
||||
state: restarted
|
||||
daemon_reload: true
|
||||
when: "matrix_mautrix_meta_messenger_requires_restart | bool"
|
||||
when: "matrix_mautrix_meta_messenger_migration_requires_restart | bool"
|
||||
|
||||
Reference in New Issue
Block a user