fix conditional

This commit is contained in:
Michael Collins 2021-10-09 09:24:39 +08:00
parent 384dfdce4b
commit df9da052ab

View File

@ -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