Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

34 lignes
1.9 KiB

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