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

36 строки
1.8 KiB

  1. # SPDX-FileCopyrightText: 2022 - 2025 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2022 Julian-Samuel Gebühr
  3. # SPDX-FileCopyrightText: 2022 MDAD project contributors
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. ---
  7. - name: (Deprecation) Catch and report renamed maubot variables
  8. ansible.builtin.fail:
  9. msg: >-
  10. Your configuration contains a variable, which now has a different name.
  11. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  12. when: "item.old in vars"
  13. with_items:
  14. - {'old': 'matrix_bot_maubot_management_interface_port', 'new': 'matrix_bot_maubot_server_port'}
  15. - {'old': 'matrix_bot_maubot_management_interface_http_bind_port', 'new': 'matrix_bot_maubot_container_management_interface_http_bind_port'}
  16. - {'old': 'matrix_bot_maubot_registration_shared_secret', 'new': 'matrix_bot_maubot_homeserver_secret'}
  17. - {'old': 'matrix_bot_maubot_container_image_name_prefix', 'new': 'matrix_bot_maubot_container_image_registry_prefix'}
  18. - name: Fail if required maubot settings not defined
  19. ansible.builtin.fail:
  20. msg: >-
  21. You need to define a required configuration setting (`{{ item.name }}`).
  22. when: "item.when | bool and vars[item.name] == ''"
  23. with_items:
  24. - {'name': 'matrix_bot_maubot_hostname', when: true}
  25. - {'name': 'matrix_bot_maubot_path_prefix', when: true}
  26. - {'name': 'matrix_bot_maubot_unshared_secret', when: true}
  27. - {'name': 'matrix_bot_maubot_admins', when: true}
  28. - {'name': 'matrix_bot_maubot_database_hostname', when: "{{ matrix_bot_maubot_database_engine == 'postgres' }}"}
  29. - {'name': 'matrix_bot_maubot_container_network', when: true}
  30. - {'name': 'matrix_bot_maubot_homeserver_name', when: true}
  31. - {'name': 'matrix_bot_maubot_homeserver_url', when: true}
  32. - {'name': 'matrix_bot_maubot_initial_password', when: true}