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:
Slavi Pantaleev
2026-02-13 14:46:06 +02:00
parent 4a8df13854
commit 6da1223500
26 changed files with 71 additions and 71 deletions

View File

@@ -48,7 +48,7 @@
when: "matrix_mx_puppet_steam_stat_database.stat.exists"
- ansible.builtin.set_fact:
matrix_mx_puppet_steam_requires_restart: false
matrix_mx_puppet_steam_migration_requires_restart: false
- when: "matrix_mx_puppet_steam_database_engine == 'postgres'"
block:
@@ -72,7 +72,7 @@
systemd_services_to_stop: ['matrix-mx-puppet-steam.service']
- ansible.builtin.set_fact:
matrix_mx_puppet_steam_requires_restart: true
matrix_mx_puppet_steam_migration_requires_restart: true
- name: Ensure MX Puppet Steam image is pulled
community.docker.docker_image:
@@ -143,4 +143,4 @@
name: "matrix-mx-puppet-steam.service"
state: restarted
daemon_reload: true
when: "matrix_mx_puppet_steam_requires_restart | bool"
when: "matrix_mx_puppet_steam_migration_requires_restart | bool"