Switch to using an external Redis role
This commit is contained in:
@ -14,3 +14,6 @@ matrix_playbook_migration_matrix_grafana_migration_validation_enabled: true
|
||||
|
||||
# Controls if (`matrix_ntfy` -> `ntfy`) validation will run.
|
||||
matrix_playbook_migration_matrix_ntfy_migration_validation_enabled: true
|
||||
|
||||
# Controls if (`matrix_redis` -> `redis`) validation will run.
|
||||
matrix_playbook_migration_matrix_redis_migration_validation_enabled: true
|
||||
|
@ -125,3 +125,18 @@
|
||||
Please change your configuration (vars.yml) to rename all variables (`matrix_ntfy_` -> `ntfy_`).
|
||||
We found usage of the following variables: {{ matrix_playbook_migration_ntfy_migration_vars.keys() | join(', ') }}
|
||||
when: "matrix_playbook_migration_ntfy_migration_vars | length > 0"
|
||||
|
||||
- when: matrix_playbook_migration_matrix_redis_migration_validation_enabled | bool
|
||||
block:
|
||||
- ansible.builtin.set_fact:
|
||||
matrix_playbook_migration_redis_migration_vars: |-
|
||||
{{ vars | dict2items | selectattr('key', 'match', 'matrix_redis_.*') | list | items2dict }}
|
||||
|
||||
- name: (Deprecation) Catch and report matrix_redis variables
|
||||
ansible.builtin.fail:
|
||||
msg: >-
|
||||
The matrix-redis role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/redis.
|
||||
The new role is compatible with the old one, but uses different names for its variables.
|
||||
Please change your configuration (vars.yml) to rename all variables (`matrix_redis_` -> `redis_`).
|
||||
We found usage of the following variables: {{ matrix_playbook_migration_redis_migration_vars.keys() | join(', ') }}
|
||||
when: "matrix_playbook_migration_redis_migration_vars | length > 0"
|
||||
|
Reference in New Issue
Block a user