From 350d4d4bcd0361ca0dfa5806c0a76b2bdc781df7 Mon Sep 17 00:00:00 2001 From: Backslash Date: Wed, 25 Sep 2024 18:35:09 +1000 Subject: [PATCH] Fixed assertion block to remove jinja2 delimiters --- roles/custom/matrix-element-call/tasks/validate_config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/custom/matrix-element-call/tasks/validate_config.yml b/roles/custom/matrix-element-call/tasks/validate_config.yml index c4a55e0df..d6e10c930 100644 --- a/roles/custom/matrix-element-call/tasks/validate_config.yml +++ b/roles/custom/matrix-element-call/tasks/validate_config.yml @@ -21,7 +21,7 @@ - name: Validate that the Element Call hostname is properly formatted ansible.builtin.assert: that: - - "'{{ matrix_element_call_hostname }}' is match('^([a-zA-Z0-9][-a-zA-Z0-9]*[a-zA-Z0-9])$')" + - matrix_element_call_hostname is match('^([a-zA-Z0-9][-a-zA-Z0-9]*[a-zA-Z0-9])$') fail_msg: "The hostname '{{ matrix_element_call_hostname }}' is not valid. It should be a valid domain or subdomain." success_msg: "The hostname '{{ matrix_element_call_hostname }}' is valid." @@ -76,4 +76,4 @@ ansible.builtin.fail: msg: "The required configuration path '{{ item.path }}' does not exist or is not accessible." when: config_paths_check.results is defined and config_paths_check.results | selectattr('failed', 'eq', True) | list | length > 0 - loop: "{{ config_paths_check.results | selectattr('failed', 'eq', True) | list }}" \ No newline at end of file + loop: "{{ config_paths_check.results | selectattr('failed', 'eq', True) | list }}"