2024-12-07 17:34:44 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 MDAD Team and contributors
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2022-04-21 10:07:47 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Fail if required settings not defined
|
2022-07-18 09:39:08 +02:00
|
|
|
ansible.builtin.fail:
|
2022-04-21 10:07:47 +02:00
|
|
|
msg: >-
|
|
|
|
You need to define a required configuration setting (`{{ item }}`).
|
|
|
|
when: "vars[item] == ''"
|
2023-07-24 12:57:06 +02:00
|
|
|
with_items:
|
|
|
|
- "matrix_bot_matrix_registration_bot_bot_password"
|
2024-01-07 16:04:23 +01:00
|
|
|
- "matrix_bot_matrix_registration_bot_matrix_homeserver_url"
|
2023-07-24 12:57:06 +02:00
|
|
|
|
|
|
|
- name: (Deprecation) Catch and report old settings
|
|
|
|
ansible.builtin.fail:
|
|
|
|
msg: >-
|
|
|
|
Your configuration contains a variable, which is deprecated - Please check the documentation on how to configure the matrix-registration-bot.
|
|
|
|
when: "item in vars"
|
2022-04-21 10:07:47 +02:00
|
|
|
with_items:
|
|
|
|
- "matrix_bot_matrix_registration_bot_bot_access_token"
|