Browse Source

Use simple matching for ma1sd deprecated vars validation

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3432
pull/3435/head
Slavi Pantaleev 1 year ago
parent
commit
dce0f64f6d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      roles/custom/matrix-ma1sd/tasks/validate_config.yml

+ 1
- 1
roles/custom/matrix-ma1sd/tasks/validate_config.yml View File

@@ -61,7 +61,7 @@
msg: >- msg: >-
Your configuration contains a variable, which now has a different name. Your configuration contains a variable, which now has a different name.
Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`). Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
when: "vars | dict2items | selectattr('key', 'match', item.old) | list | items2dict"
when: "item.old in vars"
with_items: with_items:
- {'old': 'matrix_ma1sd_container_expose_port', 'new': '<superseded by matrix_ma1sd_container_http_host_bind_port>'} - {'old': 'matrix_ma1sd_container_expose_port', 'new': '<superseded by matrix_ma1sd_container_http_host_bind_port>'}
- {'old': 'matrix_ma1sd_threepid_medium_email_custom_unbind_fraudulent_template', 'new': 'matrix_ma1sd_threepid_medium_email_custom_session_unbind_notification_template'} - {'old': 'matrix_ma1sd_threepid_medium_email_custom_unbind_fraudulent_template', 'new': 'matrix_ma1sd_threepid_medium_email_custom_session_unbind_notification_template'}


Loading…
Cancel
Save