mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-01-03 01:57:18 +00:00
improve conditional
This commit is contained in:
parent
ecc0437520
commit
d1754915d1
@ -23,6 +23,10 @@
|
||||
with_dict:
|
||||
'ext_matrix_client_element_welcome_logo_raw': '{{ ext_matrix_client_element_welcome_logo_raw }}'
|
||||
|
||||
- name: Set fact for 'https' string
|
||||
set_fact:
|
||||
awx_https_string: "https"
|
||||
|
||||
- name: Set custom logo URL locally on AWX if defined
|
||||
delegate_to: 127.0.0.1
|
||||
lineinfile:
|
||||
@ -32,7 +36,7 @@
|
||||
insertafter: '# Element Settings Start'
|
||||
with_dict:
|
||||
'matrix_client_element_welcome_logo': '{{ ext_matrix_client_element_welcome_logo_raw }}'
|
||||
when: ext_matrix_client_element_welcome_logo_raw|trim|length > 0
|
||||
when: ( awx_https_string in ext_matrix_client_element_welcome_logo_raw ) and ( ext_matrix_client_element_welcome_logo_raw|trim|length > 0 )
|
||||
|
||||
- name: Remove custom logo URL locally on AWX if not defined
|
||||
delegate_to: 127.0.0.1
|
||||
@ -42,10 +46,6 @@
|
||||
state: absent
|
||||
when: ext_matrix_client_element_welcome_logo_raw|trim|length == 0
|
||||
|
||||
- name: Set fact for 'https' string
|
||||
set_fact:
|
||||
awx_https_string: "https"
|
||||
|
||||
- name: Record Element-Web Background variable locally on AWX
|
||||
delegate_to: 127.0.0.1
|
||||
lineinfile:
|
||||
|
Loading…
Reference in New Issue
Block a user