Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

36 строки
1.7 KiB

  1. ---
  2. - name: Fail if required settings not defined
  3. fail:
  4. msg: >-
  5. You need to define a required configuration setting (`{{ item }}`).
  6. when: "vars[item] == ''"
  7. with_items:
  8. - "matrix_appservice_irc_appservice_token"
  9. - "matrix_appservice_irc_homeserver_token"
  10. # Our base configuration (`matrix_appservice_irc_configuration_yaml`) is not enough to
  11. # let the playbook run without errors.
  12. #
  13. # Unless the final configuration (`matrix_appservice_irc_configuration`) contains an `ircService` definition,
  14. # we'd fail generating the registration.yaml file with a non-helpful error.
  15. #
  16. # This is a safety check to ensure we fail earlier and in a nicer way.
  17. - name: Fail if no additional configuration provided
  18. fail:
  19. msg: >-
  20. Your Appservice IRC configuration is incomplete (lacking an `ircService.servers` configuration).
  21. You need to define one or more servers by either using `matrix_appservice_irc_ircService_servers`
  22. or by extending the base configuration with additional configuration in `matrix_appservice_irc_configuration_extension_yaml`.
  23. Overriding the whole bridge's configuration (`matrix_appservice_irc_configuration`) is yet another possibility.
  24. when: "matrix_appservice_irc_configuration.ircService.servers|length == 0"
  25. - name: (Deprecation) Catch and report renamed appservice-irc variables
  26. fail:
  27. msg: >-
  28. Your configuration contains a variable, which now has a different name.
  29. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  30. when: "item.old in vars"
  31. with_items:
  32. - {'old': 'matrix_appservice_irc_container_expose_client_server_api_port', 'new': '<superseded by matrix_appservice_irc_container_http_host_bind_port>'}