You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.2 KiB
28 lines
1.2 KiB
6 years ago
|
---
|
||
|
|
||
|
- name: Fail if required settings not defined
|
||
2 years ago
|
ansible.builtin.fail:
|
||
6 years ago
|
msg: >-
|
||
|
You need to define a required configuration setting (`{{ item }}`).
|
||
|
when: "vars[item] == ''"
|
||
|
with_items:
|
||
|
- "matrix_appservice_discord_client_id"
|
||
|
- "matrix_appservice_discord_bot_token"
|
||
6 years ago
|
- "matrix_appservice_discord_appservice_token"
|
||
|
- "matrix_appservice_discord_homeserver_token"
|
||
4 years ago
|
- "matrix_appservice_discord_homeserver_domain"
|
||
6 years ago
|
|
||
|
- name: (Deprecation) Catch and report renamed appservice-discord variables
|
||
2 years ago
|
ansible.builtin.fail:
|
||
6 years ago
|
msg: >-
|
||
|
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"
|
||
|
with_items:
|
||
|
- {'old': 'matrix_appservice_discord_container_expose_client_server_api_port', 'new': '<superseded by matrix_appservice_discord_container_http_host_bind_port>'}
|
||
4 years ago
|
|
||
|
- name: Require a valid database engine
|
||
2 years ago
|
ansible.builtin.fail:
|
||
|
msg: "`matrix_appservice_discord_database_engine` needs to be either 'sqlite' or 'postgres'"
|
||
4 years ago
|
when: "matrix_appservice_discord_database_engine not in ['sqlite', 'postgres']"
|