2024-12-07 16:34:44 +00:00
|
|
|
# SPDX-FileCopyrightText: 2024 MDAD Team and contributors
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2022-04-21 08:07:47 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Fail if required settings not defined
|
2022-07-18 07:39:08 +00:00
|
|
|
ansible.builtin.fail:
|
2022-04-21 08:07:47 +00:00
|
|
|
msg: >-
|
|
|
|
You need to define a required configuration setting (`{{ item }}`).
|
|
|
|
when: "vars[item] == ''"
|
2023-07-24 10:57:06 +00:00
|
|
|
with_items:
|
|
|
|
- "matrix_bot_matrix_registration_bot_bot_password"
|
2024-01-07 15:04:23 +00:00
|
|
|
- "matrix_bot_matrix_registration_bot_matrix_homeserver_url"
|
2023-07-24 10:57:06 +00: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 08:07:47 +00:00
|
|
|
with_items:
|
|
|
|
- "matrix_bot_matrix_registration_bot_bot_access_token"
|