Skip to content

Commit 79acf6f

Browse files
update conditionals
1 parent a352ea4 commit 79acf6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/matrix-awx/tasks/set_variables_element.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
path: '{{ awx_cached_matrix_vars }}'
9393
regexp: "^matrix_client_element_welcome_text: "
9494
state: absent
95-
when: awx_matrix_client_element_welcome_text|trim|length == 0
95+
when: awx_matrix_client_element_welcome_text | trim | length == 0
9696

9797
- name: Record Element-Web Background variable locally on AWX
9898
delegate_to: 127.0.0.1
@@ -103,7 +103,7 @@
103103
insertafter: '# Element Settings Start'
104104
with_dict:
105105
'matrix_client_element_branding_welcomeBackgroundUrl': '{{ matrix_client_element_branding_welcomeBackgroundUrl }}'
106-
when: ( awx_https_string in matrix_client_element_branding_welcomeBackgroundUrl ) and ( matrix_client_element_branding_welcomeBackgroundUrl | length > 0 )
106+
when: ( awx_https_string in matrix_client_element_branding_welcomeBackgroundUrl ) and ( matrix_client_element_branding_welcomeBackgroundUrl | trim | length > 0 )
107107

108108
- name: Save new 'Configure Element' survey.json to the AWX tower, template
109109
delegate_to: 127.0.0.1

0 commit comments

Comments
 (0)