ab59cc50bd
Fixes #171 (Github Issue).
25 lines
1.2 KiB
YAML
25 lines
1.2 KiB
YAML
---
|
|
|
|
# Our base configuration (`matrix_appservice_irc_configuration_yaml`) is not enough to
|
|
# let the playbook run without errors.
|
|
#
|
|
# Unless the final configuration (`matrix_appservice_irc_configuration`) contains an `ircService` definition,
|
|
# we'd fail generating the registration.yaml file with a non-helpful error.
|
|
#
|
|
# This is a safety check to ensure we fail earlier and in a nicer way.
|
|
- name: Fail if no additional configuration provided
|
|
fail:
|
|
msg: >-
|
|
Your Appservice IRC configuration is incomplete (lacking an `ircService` key).
|
|
You need to define additional configuration in `matrix_appservice_irc_configuration_extension_yaml` or to override `matrix_appservice_irc_configuration`.
|
|
when: "matrix_appservice_irc_configuration.ircService|default(none) is none"
|
|
|
|
- name: (Deprecation) Catch and report renamed appservice-irc variables
|
|
fail:
|
|
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_irc_container_expose_client_server_api_port', 'new': '<superseded by matrix_appservice_irc_container_http_host_bind_port>'}
|