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

35 строки
2.0 KiB

  1. # SPDX-FileCopyrightText: 2022 - 2025 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2022 MDAD project contributors
  3. # SPDX-FileCopyrightText: 2025 Suguru Hirahara
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. ---
  7. - name: Fail if required mautrix-discord settings not defined
  8. ansible.builtin.fail:
  9. msg: >-
  10. You need to define a required configuration setting (`{{ item.name }}`).
  11. when: "item.when | bool and vars[item.name] == ''"
  12. with_items:
  13. - {'name': 'matrix_mautrix_discord_appservice_token', when: true}
  14. - {'name': 'matrix_mautrix_discord_homeserver_address', when: true}
  15. - {'name': 'matrix_mautrix_discord_homeserver_token', when: true}
  16. - {'name': 'matrix_mautrix_discord_bridge_public_address', when: true}
  17. - {'name': 'matrix_mautrix_discord_container_network', when: true}
  18. - {'name': 'matrix_mautrix_discord_database_hostname', when: "{{ matrix_mautrix_discord_database_engine == 'postgres' }}"}
  19. - {'name': 'matrix_mautrix_discord_container_labels_avatar_proxy_hostname', when: "{{ matrix_mautrix_discord_container_labels_avatar_proxy_enabled }}"}
  20. - {'name': 'matrix_mautrix_discord_container_labels_avatar_proxy_path_prefix', when: "{{ matrix_mautrix_discord_container_labels_avatar_proxy_enabled }}"}
  21. - name: (Deprecation) Catch and report renamed mautrix-discord settings
  22. ansible.builtin.fail:
  23. msg: >-
  24. Your configuration contains a variable, which now has a different name.
  25. Please rename the variable (`{{ item.old }}` -> `{{ item.new }}`) on your configuration file (vars.yml).
  26. when: "item.old in vars"
  27. with_items:
  28. - {'old': 'matrix_mautrix_discord_login_shared_secret', 'new': '<removed>'}
  29. - {'old': 'matrix_mautrix_discord_homeserver_public_address', 'new': 'matrix_mautrix_discord_bridge_public_address'}
  30. - {'old': 'matrix_mautrix_discord_command_prefix', 'new': 'matrix_mautrix_discord_bridge_command_prefix'}
  31. - {'old': 'matrix_mautrix_discord_docker_image_name_prefix', 'new': 'matrix_mautrix_discord_docker_image_registry_prefix'}