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-12-23 07:58:35 +01:00
|
|
|
- "matrix_bot_matrix_registration_bot_api_base_url"
|
2023-07-24 12:57:06 +02:00
|
|
|
|
2024-12-23 07:58:35 +01:00
|
|
|
- name: (Deprecation) Catch and report renamed settings
|
2023-07-24 12:57:06 +02:00
|
|
|
ansible.builtin.fail:
|
|
|
|
msg: >-
|
2024-12-23 07:58:35 +01:00
|
|
|
Your configuration contains a variable, which now has a different name.
|
|
|
|
Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
|
|
|
|
when: "item.old in vars"
|
2022-04-21 10:07:47 +02:00
|
|
|
with_items:
|
2024-12-23 07:58:35 +01:00
|
|
|
- {'old': 'matrix_bot_matrix_registration_bot_bot_access_token', 'new': '<removed>'}
|
|
|
|
- {'old': 'matrix_bot_matrix_registration_bot_matrix_homeserver_url', 'new': 'matrix_bot_matrix_registration_bot_api_base_url'}
|