4 Commits

4 changed files with 46 additions and 4 deletions

View File

@ -1,7 +1,7 @@
--- ---
element_user: element element_user: element
element_state: "present" element_state: "present"
element_version: "1.11.85" element_version: "1.11.86"
element_deployment_method: "docker" element_deployment_method: "docker"
element_base_path: "/opt/element" element_base_path: "/opt/element"

View File

@ -23,8 +23,9 @@ synapse_default_config: >-
| combine(synapse_metrics_config) | combine(synapse_metrics_config)
| combine(synapse_api_config) | combine(synapse_api_config)
| combine(synapse_push_config) | combine(synapse_push_config)
| combine(synapse_registration_config)
}} }}
synapse_homeserver_config: >- synapse_homeserver_config: >-
{{ synapse_default_config {{ synapse_default_config
| combine(synapse_config | default({})) }} | combine(synapse_config | default({}), recursive=True) }}

View File

@ -0,0 +1,41 @@
---
synapse_config_enable_registration: false
synapse_config_enable_registration_without_verification: false
synapse_config_registrations_require_3pid: []
synapse_config_registration_requires_token: true
synapse_config_registration_shared_secret: ~
synapse_config_registration_shared_secret_path: ~
synapse_config_allowed_local_3pids: []
synapse_config_enable_3pid_lookup: true
synapse_config_bcrypt_rounds: 14
synapse_config_allow_guest_access: false
synapse_config_default_identity_server: ~
synapse_config_enable_set_displayname: true
synapse_config_enable_set_avatar_url: true
synapse_config_enable_3pid_changes: true
synapse_registration_base_config:
enable_set_displayname: "{{ synapse_config_enable_set_displayname }}"
enable_set_avatar_url: "{{ synapse_config_enable_set_avatar_url }}"
enable_3pid_changes: "{{ synapse_config_enable_3pid_changes }}"
allow_guest_access: "{{ synapse_config_allow_guest_access }}"
enable_registration: "{{ synapse_config_enable_registration }}"
enable_registration_without_verification: >-2
{{ synapse_config_enable_registration_without_verification }}
allowed_local_3pids: "{{ synapse_config_allowed_local_3pids }}"
enable_3pid_lookup: "{{ synapse_config_enable_3pid_lookup }}"
registrations_require_3pid: "{{ synapse_config_registrations_require_3pid }}"
registration_requires_token: "{{ synapse_config_registration_requires_token }}"
registration_shared_secret: "{{ synapse_config_registration_shared_secret }}"
registration_shared_secret_path: >-2
{{ synapse_config_registration_shared_secret_path }}
bcrypt_rounds: "{{ synapse_config_bcrypt_rounds }}"
synapse_registration_config: >-2
{{
synapse_registration_base_config
| combine(({"default_identity_server": synapse_config_default_identity_server})
if (synapse_config_default_identity_server | default(false, true)
and synapse_config_default_identity_server | length > 0) else {})
}}

View File

@ -28,5 +28,5 @@
label: "{{ item.name }}" label: "{{ item.name }}"
when: >-2 when: >-2
item.when item.when
and (item.name not in hostvars[ansible_host] and (item.name not in hostvars[inventory_hostname]
or hostvars[ansible_host][item.name] | length == 0) or hostvars[inventory_hostname][item.name] | length == 0)