update element section

development
Michael Collins 3 years ago
parent 676ba70971
commit 927633321a

@ -32,10 +32,10 @@
"required": false, "required": false,
"min": 0, "min": 0,
"max": 256, "max": 256,
"default": "{{ awx_matrix_client_element_brand }}", "default": "{{ matrix_client_element_brand }}",
"choices": "", "choices": "",
"new_question": true, "new_question": true,
"variable": "awx_matrix_client_element_brand", "variable": "matrix_client_element_brand",
"type": "text" "type": "text"
}, },
{ {
@ -44,10 +44,10 @@
"required": false, "required": false,
"min": 0, "min": 0,
"max": 1024, "max": 1024,
"default": "{{ awx_matrix_client_element_branding_welcomeBackgroundUrl }}", "default": "{{ matrix_client_element_branding_welcomeBackgroundUrl }}",
"choices": "", "choices": "",
"new_question": true, "new_question": true,
"variable": "awx_matrix_client_element_branding_welcomeBackgroundUrl", "variable": "matrix_client_element_branding_welcomeBackgroundUrl",
"type": "text" "type": "text"
}, },
{ {
@ -56,10 +56,10 @@
"required": false, "required": false,
"min": 0, "min": 0,
"max": 1024, "max": 1024,
"default": "{{ awx_matrix_client_element_welcome_logo }}", "default": "{{ matrix_client_element_welcome_logo }}",
"choices": "", "choices": "",
"new_question": true, "new_question": true,
"variable": "awx_matrix_client_element_welcome_logo", "variable": "matrix_client_element_welcome_logo",
"type": "text" "type": "text"
}, },
{ {
@ -68,10 +68,10 @@
"required": false, "required": false,
"min": 0, "min": 0,
"max": 1024, "max": 1024,
"default": "{{ awx_matrix_client_element_welcome_logo_link }}", "default": "{{ matrix_client_element_welcome_logo_link }}",
"choices": "", "choices": "",
"new_question": true, "new_question": true,
"variable": "awx_matrix_client_element_welcome_logo_link", "variable": "matrix_client_element_welcome_logo_link",
"type": "text" "type": "text"
}, },
{ {

@ -12,6 +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 }}'
- 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
@ -21,10 +25,6 @@
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_brand': '{{ awx_matrix_client_element_brand }}'
'awx_matrix_client_element_branding_welcomeBackgroundUrl:' '{{ awx_matrix_client_element_branding_welcomeBackgroundUrl }}'
'awx_matrix_client_element_welcome_logo': '{{ awx_matrix_client_element_welcome_logo }}'
'awx_matrix_client_element_welcome_logo_link': '{{ awx_matrix_client_element_welcome_logo_link }}'
'awx_matrix_client_element_welcome_headline': '{{ awx_matrix_client_element_welcome_headline }}' '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_text': '{{ awx_matrix_client_element_welcome_text }}'
@ -36,7 +36,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_brand': "{{ awx_matrix_client_element_brand }}" 'matrix_client_element_brand': "{{ matrix_client_element_brand }}"
when: matrix_client_element_brand | trim | length > 0
- name: Remove Element-Web custom branding locally on AWX if not defined - name: Remove Element-Web custom branding locally on AWX if not defined
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
@ -44,7 +45,7 @@
path: '{{ awx_cached_matrix_vars }}' path: '{{ awx_cached_matrix_vars }}'
regexp: "^matrix_client_element_brand: " regexp: "^matrix_client_element_brand: "
state: absent state: absent
when: awx_matrix_client_element_brand | trim | length == 0 when: matrix_client_element_brand | trim | length == 0
- name: Set fact for 'https' string - name: Set fact for 'https' string
set_fact: set_fact:
@ -58,8 +59,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_welcome_logo': '{{ awx_matrix_client_element_welcome_logo }}' 'matrix_client_element_welcome_logo': '{{ matrix_client_element_welcome_logo }}'
when: ( awx_https_string in awx_matrix_client_element_welcome_logo ) and ( awx_matrix_client_element_welcome_logo | trim | length > 0 ) when: ( awx_https_string in matrix_client_element_welcome_logo ) and ( matrix_client_element_welcome_logo | trim | length > 0 )
- name: Remove Element-Web custom logo locally on AWX if not defined - name: Remove Element-Web custom logo locally on AWX if not defined
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
@ -67,7 +68,7 @@
path: '{{ awx_cached_matrix_vars }}' path: '{{ awx_cached_matrix_vars }}'
regexp: "^matrix_client_element_welcome_logo: " regexp: "^matrix_client_element_welcome_logo: "
state: absent state: absent
when: awx_matrix_client_element_welcome_logo | trim | length == 0 when: matrix_client_element_welcome_logo | trim | length == 0
- name: Set Element-Web custom logo link locally on AWX if defined - name: Set Element-Web custom logo link locally on AWX if defined
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
@ -78,7 +79,7 @@
insertafter: '# Element Settings Start' insertafter: '# Element Settings Start'
with_dict: with_dict:
'matrix_client_element_welcome_logo_link': '{{ matrix_client_element_welcome_logo_link }}' 'matrix_client_element_welcome_logo_link': '{{ matrix_client_element_welcome_logo_link }}'
when: ( awx_https_string in awx_matrix_client_element_welcome_logo_link ) and ( awx_matrix_client_element_welcome_logo_link | trim | length > 0 ) when: ( awx_https_string in matrix_client_element_welcome_logo_link ) and ( matrix_client_element_welcome_logo_link | trim | length > 0 )
- name: Remove Element-Web custom logo link locally on AWX if not defined - name: Remove Element-Web custom logo link locally on AWX if not defined
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
@ -86,7 +87,7 @@
path: '{{ awx_cached_matrix_vars }}' path: '{{ awx_cached_matrix_vars }}'
regexp: "^matrix_client_element_welcome_logo_link: " regexp: "^matrix_client_element_welcome_logo_link: "
state: absent state: absent
when: awx_matrix_client_element_welcome_logo_link | trim | length == 0 when: matrix_client_element_welcome_logo_link | trim | length == 0
- name: Set Element-Web custom headline locally on AWX if defined - name: Set Element-Web custom headline locally on AWX if defined
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1

Loading…
Cancel
Save