From dce0f64f6d31cb44711ebeffb34f872d5bb63693 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Fri, 19 Jul 2024 07:31:33 +0300 Subject: [PATCH] Use simple matching for ma1sd deprecated vars validation Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3432 --- roles/custom/matrix-ma1sd/tasks/validate_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/custom/matrix-ma1sd/tasks/validate_config.yml b/roles/custom/matrix-ma1sd/tasks/validate_config.yml index 2dd66e1a3..8e4787507 100644 --- a/roles/custom/matrix-ma1sd/tasks/validate_config.yml +++ b/roles/custom/matrix-ma1sd/tasks/validate_config.yml @@ -61,7 +61,7 @@ msg: >- Your configuration contains a variable, which now has a different name. 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: - {'old': 'matrix_ma1sd_container_expose_port', 'new': ''} - {'old': 'matrix_ma1sd_threepid_medium_email_custom_unbind_fraudulent_template', 'new': 'matrix_ma1sd_threepid_medium_email_custom_session_unbind_notification_template'}