|
12 | 12 | 'matrix_client_element_jitsi_preferredDomain': 'jitsi.{{ matrix_domain }}' |
13 | 13 | 'matrix_client_element_default_theme': '{{ matrix_client_element_default_theme }}' |
14 | 14 | 'matrix_client_element_registration_enabled': '{{ matrix_client_element_registration_enabled }}' |
| 15 | + 'matrix_client_element_brand': '{{ matrix_client_element_brand }}' |
| 16 | + 'matrix_client_element_branding_welcomeBackgroundUrl:' '{{ matrix_client_element_branding_welcomeBackgroundUrl }}' |
| 17 | + 'matrix_client_element_welcome_logo': '{{ matrix_client_element_welcome_logo }}' |
| 18 | + 'matrix_client_element_welcome_logo_link': '{{ matrix_client_element_welcome_logo_link }}' |
15 | 19 |
|
16 | 20 | - name: Record Element-Web custom variables locally on AWX |
17 | 21 | delegate_to: 127.0.0.1 |
|
21 | 25 | line: "{{ item.key }}: '{{ item.value }}'" |
22 | 26 | insertbefore: '# Element Settings End' |
23 | 27 | with_dict: |
24 | | - 'awx_matrix_client_element_brand': '{{ awx_matrix_client_element_brand }}' |
25 | | - 'awx_matrix_client_element_branding_welcomeBackgroundUrl:' '{{ awx_matrix_client_element_branding_welcomeBackgroundUrl }}' |
26 | | - 'awx_matrix_client_element_welcome_logo': '{{ awx_matrix_client_element_welcome_logo }}' |
27 | | - 'awx_matrix_client_element_welcome_logo_link': '{{ awx_matrix_client_element_welcome_logo_link }}' |
28 | 28 | 'awx_matrix_client_element_welcome_headline': '{{ awx_matrix_client_element_welcome_headline }}' |
29 | 29 | 'awx_matrix_client_element_welcome_text': '{{ awx_matrix_client_element_welcome_text }}' |
30 | 30 |
|
|
36 | 36 | line: "{{ item.key }}: '{{ item.value }}'" |
37 | 37 | insertafter: '# Element Settings Start' |
38 | 38 | with_dict: |
39 | | - 'matrix_client_element_brand': "{{ awx_matrix_client_element_brand }}" |
| 39 | + 'matrix_client_element_brand': "{{ matrix_client_element_brand }}" |
| 40 | + when: matrix_client_element_brand | trim | length > 0 |
40 | 41 |
|
41 | 42 | - name: Remove Element-Web custom branding locally on AWX if not defined |
42 | 43 | delegate_to: 127.0.0.1 |
43 | 44 | lineinfile: |
44 | 45 | path: '{{ awx_cached_matrix_vars }}' |
45 | 46 | regexp: "^matrix_client_element_brand: " |
46 | 47 | state: absent |
47 | | - when: awx_matrix_client_element_brand | trim | length == 0 |
| 48 | + when: matrix_client_element_brand | trim | length == 0 |
48 | 49 |
|
49 | 50 | - name: Set fact for 'https' string |
50 | 51 | set_fact: |
|
58 | 59 | line: "{{ item.key }}: '{{ item.value }}'" |
59 | 60 | insertafter: '# Element Settings Start' |
60 | 61 | with_dict: |
61 | | - 'matrix_client_element_welcome_logo': '{{ awx_matrix_client_element_welcome_logo }}' |
62 | | - when: ( awx_https_string in awx_matrix_client_element_welcome_logo ) and ( awx_matrix_client_element_welcome_logo | trim | length > 0 ) |
| 62 | + 'matrix_client_element_welcome_logo': '{{ matrix_client_element_welcome_logo }}' |
| 63 | + when: ( awx_https_string in matrix_client_element_welcome_logo ) and ( matrix_client_element_welcome_logo | trim | length > 0 ) |
63 | 64 |
|
64 | 65 | - name: Remove Element-Web custom logo locally on AWX if not defined |
65 | 66 | delegate_to: 127.0.0.1 |
66 | 67 | lineinfile: |
67 | 68 | path: '{{ awx_cached_matrix_vars }}' |
68 | 69 | regexp: "^matrix_client_element_welcome_logo: " |
69 | 70 | state: absent |
70 | | - when: awx_matrix_client_element_welcome_logo | trim | length == 0 |
| 71 | + when: matrix_client_element_welcome_logo | trim | length == 0 |
71 | 72 |
|
72 | 73 | - name: Set Element-Web custom logo link locally on AWX if defined |
73 | 74 | delegate_to: 127.0.0.1 |
|
78 | 79 | insertafter: '# Element Settings Start' |
79 | 80 | with_dict: |
80 | 81 | 'matrix_client_element_welcome_logo_link': '{{ matrix_client_element_welcome_logo_link }}' |
81 | | - when: ( awx_https_string in awx_matrix_client_element_welcome_logo_link ) and ( awx_matrix_client_element_welcome_logo_link | trim | length > 0 ) |
| 82 | + when: ( awx_https_string in matrix_client_element_welcome_logo_link ) and ( matrix_client_element_welcome_logo_link | trim | length > 0 ) |
82 | 83 |
|
83 | 84 | - name: Remove Element-Web custom logo link locally on AWX if not defined |
84 | 85 | delegate_to: 127.0.0.1 |
85 | 86 | lineinfile: |
86 | 87 | path: '{{ awx_cached_matrix_vars }}' |
87 | 88 | regexp: "^matrix_client_element_welcome_logo_link: " |
88 | 89 | state: absent |
89 | | - when: awx_matrix_client_element_welcome_logo_link | trim | length == 0 |
| 90 | + when: matrix_client_element_welcome_logo_link | trim | length == 0 |
90 | 91 |
|
91 | 92 | - name: Set Element-Web custom headline locally on AWX if defined |
92 | 93 | delegate_to: 127.0.0.1 |
|
0 commit comments