simplify matrix_auto_join_users
This commit is contained in:
@@ -8,3 +8,5 @@ synapse_psql_db: "{{ synapse_psql_user }}"
|
||||
matrix_max_upload_size_mb: 100
|
||||
synapse_metrics: false
|
||||
synapse_presence: true
|
||||
|
||||
matrix_auto_join_rooms: []
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
- listeners
|
||||
- server_name
|
||||
- url_preview
|
||||
- autojoin
|
||||
notify: Config matrix target
|
||||
|
||||
- name: Ensure synapse configs including secrets is in place
|
||||
@@ -43,16 +44,6 @@
|
||||
- general
|
||||
notify: Config matrix target
|
||||
|
||||
- name: Ensure autojoin config is in place
|
||||
ansible.builtin.template:
|
||||
src: conf.d/autojoin.yaml.j2
|
||||
dest: /etc/matrix-synapse/conf.d/autojoin.yaml
|
||||
owner: matrix-synapse
|
||||
group: nogroup
|
||||
mode: 0644
|
||||
when: matrix_auto_join_rooms is defined
|
||||
notify: Config matrix target
|
||||
|
||||
- name: Ensure password provider config is in place
|
||||
ansible.builtin.template:
|
||||
src: conf.d/password_providers.yaml.j2
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
auto_join_rooms:
|
||||
{% for room_id in matrix_auto_join_rooms %}
|
||||
- "{{ room_id }}"
|
||||
{% endfor %}
|
||||
auto_join_rooms: {{ matrix_auto_join_rooms }}
|
||||
|
||||
Reference in New Issue
Block a user