Skip to content

Commit c95d181

Browse files
committed
Add matrix_client_cinny_config_homeserverList variable
1 parent e533eef commit c95d181

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

roles/custom/matrix-client-cinny/defaults/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,13 @@ matrix_client_cinny_path_prefix: /
143143
# Controls whether the self-check feature should validate SSL certificates.
144144
matrix_client_cinny_self_check_validate_certificates: true
145145

146-
# config.json
146+
# Default homeserver URL to use in the `config.json` file.
147+
# See `matrix_client_cinny_config_homeserverList`.
147148
matrix_client_cinny_default_hs_url: ""
148149

150+
# Controls the `homeserverList` value in the `config.json` file.
151+
matrix_client_cinny_config_homeserverList: "{{ [matrix_client_cinny_default_hs_url] }}" # noqa var-naming
152+
149153
# Default Cinny configuration template which covers the generic use case.
150154
# You can customize it by controlling the various variables inside it.
151155
#
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"defaultHomeserver": 0,
3-
"homeserverList": [
4-
{{ matrix_client_cinny_default_hs_url | string|to_json }}
5-
]
3+
"homeserverList": {{ matrix_client_cinny_config_homeserverList | to_json }}
64
}

0 commit comments

Comments
 (0)