Matrix Docker Ansible eploy
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.
 
 

25 lines
1.2 KiB

  1. ---
  2. # Our base configuration (`matrix_appservice_irc_configuration_yaml`) is not enough to
  3. # let the playbook run without errors.
  4. #
  5. # Unless the final configuration (`matrix_appservice_irc_configuration`) contains an `ircService` definition,
  6. # we'd fail generating the registration.yaml file with a non-helpful error.
  7. #
  8. # This is a safety check to ensure we fail earlier and in a nicer way.
  9. - name: Fail if no additional configuration provided
  10. fail:
  11. msg: >-
  12. Your Appservice IRC configuration is incomplete (lacking an `ircService` key).
  13. You need to define additional configuration in `matrix_appservice_irc_configuration_extension_yaml` or to override `matrix_appservice_irc_configuration`.
  14. when: "matrix_appservice_irc_configuration.ircService|default(none) is none"
  15. - name: (Deprecation) Catch and report renamed appservice-irc variables
  16. fail:
  17. msg: >-
  18. Your configuration contains a variable, which now has a different name.
  19. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  20. when: "item.old in vars"
  21. with_items:
  22. - {'old': 'matrix_appservice_irc_container_expose_client_server_api_port', 'new': '<superseded by matrix_appservice_irc_container_http_host_bind_port>'}