From df9da052abdc21a6593b4e72a58fd804c0fd4339 Mon Sep 17 00:00:00 2001 From: Michael Collins Date: Sat, 9 Oct 2021 09:24:39 +0800 Subject: [PATCH] fix conditional --- roles/matrix-awx/tasks/set_variables_element.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/matrix-awx/tasks/set_variables_element.yml b/roles/matrix-awx/tasks/set_variables_element.yml index 37ce85f36..ebaedcaae 100755 --- a/roles/matrix-awx/tasks/set_variables_element.yml +++ b/roles/matrix-awx/tasks/set_variables_element.yml @@ -77,7 +77,7 @@ insertafter: '# Element Settings Start' with_dict: 'matrix_client_element_welcome_headline': '{{ ext_matrix_client_element_welcome_headline }}' - when: ( awx_https_string in ext_matrix_client_element_welcome_headline ) and ( ext_matrix_client_element_welcome_headline|trim|length > 0 ) + when: ext_matrix_client_element_welcome_headline|trim|length > 0 - name: Remove custom headline locally on AWX if not defined delegate_to: 127.0.0.1 @@ -96,7 +96,7 @@ insertafter: '# Element Settings Start' with_dict: 'matrix_client_element_welcome_text': '{{ ext_matrix_client_element_welcome_text }}' - when: ( awx_https_string in ext_matrix_client_element_welcome_text ) and ( ext_matrix_client_element_welcome_text|trim|length > 0 ) + when: ext_matrix_client_element_welcome_text|trim|length > 0 - name: Remove custom text locally on AWX if not defined delegate_to: 127.0.0.1