|
|
@ -21,10 +21,10 @@
|
|
|
|
line: "{{ item.key }}: {{ item.value }}"
|
|
|
|
line: "{{ item.key }}: {{ item.value }}"
|
|
|
|
insertbefore: '# Custom Settings Start'
|
|
|
|
insertbefore: '# Custom Settings Start'
|
|
|
|
with_dict:
|
|
|
|
with_dict:
|
|
|
|
'ext_matrix_client_element_welcome_logo': '{{ ext_matrix_client_element_welcome_logo }}'
|
|
|
|
'awx_matrix_client_element_welcome_logo': '{{ awx_matrix_client_element_welcome_logo }}'
|
|
|
|
'ext_matrix_client_element_welcome_logo_link': '{{ ext_matrix_client_element_welcome_logo_link }}'
|
|
|
|
'awx_matrix_client_element_welcome_logo_link': '{{ awx_matrix_client_element_welcome_logo_link }}'
|
|
|
|
'ext_matrix_client_element_welcome_headline': '{{ ext_matrix_client_element_welcome_headline }}'
|
|
|
|
'awx_matrix_client_element_welcome_headline': '{{ awx_matrix_client_element_welcome_headline }}'
|
|
|
|
'ext_matrix_client_element_welcome_text': '{{ ext_matrix_client_element_welcome_text }}'
|
|
|
|
'awx_matrix_client_element_welcome_text': '{{ awx_matrix_client_element_welcome_text }}'
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set fact for 'https' string
|
|
|
|
- name: Set fact for 'https' string
|
|
|
|
set_fact:
|
|
|
|
set_fact:
|
|
|
@ -38,8 +38,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': '{{ ext_matrix_client_element_welcome_logo }}'
|
|
|
|
'matrix_client_element_welcome_logo': '{{ awx_matrix_client_element_welcome_logo }}'
|
|
|
|
when: ( awx_https_string in ext_matrix_client_element_welcome_logo ) and ( ext_matrix_client_element_welcome_logo|trim|length > 0 )
|
|
|
|
when: ( awx_https_string in awx_matrix_client_element_welcome_logo ) and ( awx_matrix_client_element_welcome_logo|trim|length > 0 )
|
|
|
|
|
|
|
|
|
|
|
|
- name: Remove custom logo locally on AWX if not defined
|
|
|
|
- name: Remove custom logo locally on AWX if not defined
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
@ -47,7 +47,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: ext_matrix_client_element_welcome_logo|trim|length == 0
|
|
|
|
when: awx_matrix_client_element_welcome_logo|trim|length == 0
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set custom logo link locally on AWX if defined
|
|
|
|
- name: Set custom logo link locally on AWX if defined
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
@ -57,8 +57,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_link': '{{ ext_matrix_client_element_welcome_logo_link }}'
|
|
|
|
'matrix_client_element_welcome_logo_link': '{{ awx_matrix_client_element_welcome_logo_link }}'
|
|
|
|
when: ( awx_https_string in ext_matrix_client_element_welcome_logo_link ) and ( ext_matrix_client_element_welcome_logo_link|trim|length > 0 )
|
|
|
|
when: ( awx_https_string in awx_matrix_client_element_welcome_logo_link ) and ( awx_matrix_client_element_welcome_logo_link|trim|length > 0 )
|
|
|
|
|
|
|
|
|
|
|
|
- name: Remove custom logo link locally on AWX if not defined
|
|
|
|
- name: Remove custom logo link locally on AWX if not defined
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
@ -66,7 +66,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: ext_matrix_client_element_welcome_logo_link|trim|length == 0
|
|
|
|
when: awx_matrix_client_element_welcome_logo_link|trim|length == 0
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set custom headline locally on AWX if defined
|
|
|
|
- name: Set custom headline locally on AWX if defined
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
@ -76,8 +76,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_headline': '{{ ext_matrix_client_element_welcome_headline }}'
|
|
|
|
'matrix_client_element_welcome_headline': '{{ awx_matrix_client_element_welcome_headline }}'
|
|
|
|
when: ext_matrix_client_element_welcome_headline|trim|length > 0
|
|
|
|
when: awx_matrix_client_element_welcome_headline|trim|length > 0
|
|
|
|
|
|
|
|
|
|
|
|
- name: Remove custom headline locally on AWX if not defined
|
|
|
|
- name: Remove custom headline locally on AWX if not defined
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
@ -85,7 +85,7 @@
|
|
|
|
path: '{{ awx_cached_matrix_vars }}'
|
|
|
|
path: '{{ awx_cached_matrix_vars }}'
|
|
|
|
regexp: "^matrix_client_element_welcome_headline: "
|
|
|
|
regexp: "^matrix_client_element_welcome_headline: "
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|
when: ext_matrix_client_element_welcome_headline|trim|length == 0
|
|
|
|
when: awx_matrix_client_element_welcome_headline|trim|length == 0
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set custom text locally on AWX if defined
|
|
|
|
- name: Set custom text locally on AWX if defined
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
@ -95,8 +95,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_text': '{{ ext_matrix_client_element_welcome_text }}'
|
|
|
|
'matrix_client_element_welcome_text': '{{ awx_matrix_client_element_welcome_text }}'
|
|
|
|
when: ext_matrix_client_element_welcome_text|trim|length > 0
|
|
|
|
when: awx_matrix_client_element_welcome_text|trim|length > 0
|
|
|
|
|
|
|
|
|
|
|
|
- name: Remove custom text locally on AWX if not defined
|
|
|
|
- name: Remove custom text locally on AWX if not defined
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
@ -104,7 +104,7 @@
|
|
|
|
path: '{{ awx_cached_matrix_vars }}'
|
|
|
|
path: '{{ awx_cached_matrix_vars }}'
|
|
|
|
regexp: "^matrix_client_element_welcome_text: "
|
|
|
|
regexp: "^matrix_client_element_welcome_text: "
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|
when: ext_matrix_client_element_welcome_text|trim|length == 0
|
|
|
|
when: awx_matrix_client_element_welcome_text|trim|length == 0
|
|
|
|
|
|
|
|
|
|
|
|
- name: Record Element-Web Background variable locally on AWX
|
|
|
|
- name: Record Element-Web Background variable locally on AWX
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|