| @@ -12,10 +12,10 @@ | |||||
| 'matrix_client_element_jitsi_preferredDomain': 'jitsi.{{ matrix_domain }}' | 'matrix_client_element_jitsi_preferredDomain': 'jitsi.{{ matrix_domain }}' | ||||
| 'matrix_client_element_default_theme': '{{ matrix_client_element_default_theme }}' | 'matrix_client_element_default_theme': '{{ matrix_client_element_default_theme }}' | ||||
| 'matrix_client_element_registration_enabled': '{{ matrix_client_element_registration_enabled }}' | 'matrix_client_element_registration_enabled': '{{ matrix_client_element_registration_enabled }}' | ||||
| 'matrix_client_element_brand': '{{ matrix_client_element_brand }}' | |||||
| 'matrix_client_element_branding_welcomeBackgroundUrl': '{{ matrix_client_element_branding_welcomeBackgroundUrl }}' | |||||
| 'matrix_client_element_welcome_logo': '{{ matrix_client_element_welcome_logo }}' | |||||
| 'matrix_client_element_welcome_logo_link': '{{ matrix_client_element_welcome_logo_link }}' | |||||
| 'matrix_client_element_brand': '{{ matrix_client_element_brand | trim }}' | |||||
| 'matrix_client_element_branding_welcomeBackgroundUrl': '{{ matrix_client_element_branding_welcomeBackgroundUrl | trim }}' | |||||
| 'matrix_client_element_welcome_logo': '{{ matrix_client_element_welcome_logo | trim }}' | |||||
| 'matrix_client_element_welcome_logo_link': '{{ matrix_client_element_welcome_logo_link | trim }}' | |||||
| - name: Record Element-Web custom variables locally on AWX | - name: Record Element-Web custom variables locally on AWX | ||||
| delegate_to: 127.0.0.1 | delegate_to: 127.0.0.1 | ||||
| @@ -25,8 +25,8 @@ | |||||
| line: "{{ item.key }}: '{{ item.value }}'" | line: "{{ item.key }}: '{{ item.value }}'" | ||||
| insertbefore: '# Element Settings End' | insertbefore: '# Element Settings End' | ||||
| with_dict: | with_dict: | ||||
| 'awx_matrix_client_element_welcome_headline': '{{ awx_matrix_client_element_welcome_headline }}' | |||||
| 'awx_matrix_client_element_welcome_text': '{{ awx_matrix_client_element_welcome_text }}' | |||||
| 'awx_matrix_client_element_welcome_headline': '{{ awx_matrix_client_element_welcome_headline | trim }}' | |||||
| 'awx_matrix_client_element_welcome_text': '{{ awx_matrix_client_element_welcome_text | trim }}' | |||||
| - name: Set Element-Web custom branding locally on AWX | - name: Set Element-Web custom branding locally on AWX | ||||
| delegate_to: 127.0.0.1 | delegate_to: 127.0.0.1 | ||||
| @@ -135,8 +135,8 @@ | |||||
| line: "{{ item.key }}: '{{ item.value }}'" | line: "{{ item.key }}: '{{ item.value }}'" | ||||
| insertafter: '# Element Settings Start' | insertafter: '# Element Settings Start' | ||||
| with_dict: | with_dict: | ||||
| 'matrix_client_element_branding_welcomeBackgroundUrl': '{{ awx_matrix_client_element_branding_welcomeBackgroundUrl }}' | |||||
| when: awx_matrix_client_element_branding_welcomeBackgroundUrl | trim | length > 0 | |||||
| 'matrix_client_element_branding_welcomeBackgroundUrl': '{{ matrix_client_element_branding_welcomeBackgroundUrl }}' | |||||
| when: matrix_client_element_branding_welcomeBackgroundUrl | trim | length > 0 | |||||
| - name: Remove Element-Web background locally on AWX if not defined | - name: Remove Element-Web background locally on AWX if not defined | ||||
| delegate_to: 127.0.0.1 | delegate_to: 127.0.0.1 | ||||
| @@ -144,7 +144,7 @@ | |||||
| path: '{{ awx_cached_matrix_vars }}' | path: '{{ awx_cached_matrix_vars }}' | ||||
| regexp: "^matrix_client_element_branding_welcomeBackgroundUrl: " | regexp: "^matrix_client_element_branding_welcomeBackgroundUrl: " | ||||
| state: absent | state: absent | ||||
| when: awx_matrix_client_element_branding_welcomeBackgroundUrl | trim | length == 0 | |||||
| when: matrix_client_element_branding_welcomeBackgroundUrl | trim | length == 0 | |||||
| - name: Save new 'Configure Element' survey.json to the AWX tower, template | - name: Save new 'Configure Element' survey.json to the AWX tower, template | ||||
| delegate_to: 127.0.0.1 | delegate_to: 127.0.0.1 | ||||