File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 9494 state : absent
9595 when : awx_matrix_client_element_welcome_text | trim | length == 0
9696
97- - name : Record Element-Web Background variable locally on AWX
97+ - name : Set element-web background locally on AWX if defined
9898 delegate_to : 127.0.0.1
9999 lineinfile :
100100 path : ' {{ awx_cached_matrix_vars }}'
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 | trim | length > 0 )
106+ when : matrix_client_element_branding_welcomeBackgroundUrl | trim | length > 0
107+
108+ - name : Remove element-web background locally on AWX if not defined
109+ delegate_to : 127.0.0.1
110+ lineinfile :
111+ path : ' {{ awx_cached_matrix_vars }}'
112+ regexp : " ^matrix_client_element_branding_welcomeBackgroundUrl: "
113+ state : absent
114+ when : matrix_client_element_branding_welcomeBackgroundUrl | trim | length == 0
107115
108116- name : Save new 'Configure Element' survey.json to the AWX tower, template
109117 delegate_to : 127.0.0.1
You can’t perform that action at this time.
0 commit comments