|
43 | 43 | line: "{{ item.key }}: '{{ item.value }}'" |
44 | 44 | insertafter: '# Element Settings Start' |
45 | 45 | with_dict: |
46 | | - 'matrix_client_element_welcome_logo': '{{ awx_matrix_client_element_welcome_logo }}' |
47 | | - when: ( awx_https_string in awx_matrix_client_element_welcome_logo ) and ( awx_matrix_client_element_welcome_logo | trim | length > 0 ) |
| 46 | + 'matrix_client_element_welcome_logo': '{{ matrix_client_element_welcome_logo }}' |
| 47 | + when: ( awx_https_string in matrix_client_element_welcome_logo ) and ( matrix_client_element_welcome_logo | trim | length > 0 ) |
48 | 48 |
|
49 | 49 | - name: Remove custom logo locally on AWX if not defined |
50 | 50 | delegate_to: 127.0.0.1 |
51 | 51 | lineinfile: |
52 | 52 | path: '{{ awx_cached_matrix_vars }}' |
53 | 53 | regexp: "^matrix_client_element_welcome_logo: " |
54 | 54 | state: absent |
55 | | - when: awx_matrix_client_element_welcome_logo | trim | length == 0 |
| 55 | + when: matrix_client_element_welcome_logo | trim | length == 0 |
56 | 56 |
|
57 | 57 | - name: Set custom logo link locally on AWX if defined |
58 | 58 | delegate_to: 127.0.0.1 |
|
62 | 62 | line: "{{ item.key }}: '{{ item.value }}'" |
63 | 63 | insertafter: '# Element Settings Start' |
64 | 64 | with_dict: |
65 | | - 'matrix_client_element_welcome_logo_link': '{{ awx_matrix_client_element_welcome_logo_link }}' |
66 | | - when: ( awx_https_string in awx_matrix_client_element_welcome_logo_link ) and ( awx_matrix_client_element_welcome_logo_link | trim | length > 0 ) |
| 65 | + 'matrix_client_element_welcome_logo_link': '{{ matrix_client_element_welcome_logo_link }}' |
| 66 | + when: ( awx_https_string in matrix_client_element_welcome_logo_link ) and ( matrix_client_element_welcome_logo_link | trim | length > 0 ) |
67 | 67 |
|
68 | 68 | - name: Remove custom logo link locally on AWX if not defined |
69 | 69 | delegate_to: 127.0.0.1 |
70 | 70 | lineinfile: |
71 | 71 | path: '{{ awx_cached_matrix_vars }}' |
72 | 72 | regexp: "^matrix_client_element_welcome_logo_link: " |
73 | 73 | state: absent |
74 | | - when: awx_matrix_client_element_welcome_logo_link | trim | length == 0 |
| 74 | + when: matrix_client_element_welcome_logo_link | trim | length == 0 |
75 | 75 |
|
76 | 76 | - name: Set custom headline locally on AWX if defined |
77 | 77 | delegate_to: 127.0.0.1 |
|
81 | 81 | line: "{{ item.key }}: '{{ item.value }}'" |
82 | 82 | insertafter: '# Element Settings Start' |
83 | 83 | with_dict: |
84 | | - 'matrix_client_element_welcome_headline': '{{ awx_matrix_client_element_welcome_headline }}' |
85 | | - when: awx_matrix_client_element_welcome_headline | trim | length > 0 |
| 84 | + 'matrix_client_element_welcome_headline': '{{ matrix_client_element_welcome_headline }}' |
| 85 | + when: matrix_client_element_welcome_headline | trim | length > 0 |
86 | 86 |
|
87 | 87 | - name: Remove custom headline locally on AWX if not defined |
88 | 88 | delegate_to: 127.0.0.1 |
89 | 89 | lineinfile: |
90 | 90 | path: '{{ awx_cached_matrix_vars }}' |
91 | 91 | regexp: "^matrix_client_element_welcome_headline: " |
92 | 92 | state: absent |
93 | | - when: awx_matrix_client_element_welcome_headline | trim | length == 0 |
| 93 | + when: matrix_client_element_welcome_headline | trim | length == 0 |
94 | 94 |
|
95 | 95 | - name: Set custom text locally on AWX if defined |
96 | 96 | delegate_to: 127.0.0.1 |
|
100 | 100 | line: "{{ item.key }}: '{{ item.value }}'" |
101 | 101 | insertafter: '# Element Settings Start' |
102 | 102 | with_dict: |
103 | | - 'matrix_client_element_welcome_text': '{{ awx_matrix_client_element_welcome_text }}' |
104 | | - when: awx_matrix_client_element_welcome_text | trim | length > 0 |
| 103 | + 'matrix_client_element_welcome_text': '{{ matrix_client_element_welcome_text }}' |
| 104 | + when: matrix_client_element_welcome_text | trim | length > 0 |
105 | 105 |
|
106 | 106 | - name: Remove custom text locally on AWX if not defined |
107 | 107 | delegate_to: 127.0.0.1 |
108 | 108 | lineinfile: |
109 | 109 | path: '{{ awx_cached_matrix_vars }}' |
110 | 110 | regexp: "^matrix_client_element_welcome_text: " |
111 | 111 | state: absent |
112 | | - when: awx_matrix_client_element_welcome_text | trim | length == 0 |
| 112 | + when: matrix_client_element_welcome_text | trim | length == 0 |
113 | 113 |
|
114 | 114 | - name: Set element-web background locally on AWX if defined |
115 | 115 | delegate_to: 127.0.0.1 |
|
0 commit comments