Move matrix-aux outside of this playbook
This commit is contained in:
@ -20,3 +20,6 @@ matrix_playbook_migration_matrix_redis_migration_validation_enabled: true
|
||||
|
||||
# Controls if (`matrix_etherpad` -> `etherpad`) validation will run.
|
||||
matrix_playbook_migration_matrix_etherpad_migration_validation_enabled: true
|
||||
|
||||
# Controls if (`matrix_aux` -> `aux`) validation will run.
|
||||
matrix_playbook_migration_matrix_aux_migration_validation_enabled: true
|
||||
|
@ -157,3 +157,19 @@
|
||||
Please change your configuration (vars.yml) to rename all variables (`matrix_etherpad_` -> `etherpad_`).
|
||||
We found usage of the following variables: {{ matrix_playbook_migration_etherpad_migration_vars.keys() | join(', ') }}
|
||||
when: "matrix_playbook_migration_etherpad_migration_vars | length > 0"
|
||||
|
||||
- when: matrix_playbook_migration_matrix_aux_migration_validation_enabled | bool
|
||||
block:
|
||||
- ansible.builtin.set_fact:
|
||||
matrix_playbook_migration_aux_migration_vars: |-
|
||||
{{ vars | dict2items | selectattr('key', 'match', 'matrix_aux_.*') | list | items2dict }}
|
||||
|
||||
- name: (Deprecation) Catch and report matrix_aux variables
|
||||
ansible.builtin.fail:
|
||||
msg: >-
|
||||
The matrix-aux role that used to be part of this playbook has been replaced by https://github.com/mother-of-all-self-hosting/ansible-role-aux.
|
||||
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_aux_` -> `aux_`).
|
||||
We found usage of the following variables: {{ matrix_playbook_migration_aux_migration_vars.keys() | join(', ') }}
|
||||
when: "matrix_playbook_migration_aux_migration_vars | length > 0"
|
||||
|
||||
|
Reference in New Issue
Block a user