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

35 строки
2.2 KiB

  1. # SPDX-FileCopyrightText: 2021 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2022 - 2024 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  4. # SPDX-FileCopyrightText: 2025 Suguru Hirahara
  5. #
  6. # SPDX-License-Identifier: AGPL-3.0-or-later
  7. ---
  8. - name: Fail if required mautrix-googlechat settings not defined
  9. ansible.builtin.fail:
  10. msg: >-
  11. You need to define a required configuration setting (`{{ item.name }}`).
  12. when: "item.when | bool and lookup('vars', item.name, default='') | string | length == 0"
  13. with_items:
  14. - {'name': 'matrix_mautrix_googlechat_public_endpoint', when: true}
  15. - {'name': 'matrix_mautrix_googlechat_appservice_token', when: true}
  16. - {'name': 'matrix_mautrix_googlechat_homeserver_token', when: true}
  17. - {'name': 'matrix_mautrix_googlechat_database_hostname', when: "{{ matrix_mautrix_googlechat_database_engine == 'postgres' }}"}
  18. - {'name': 'matrix_mautrix_googlechat_container_network', when: true}
  19. - {'name': 'matrix_mautrix_googlechat_homeserver_address', when: true}
  20. - {'name': 'matrix_mautrix_googlechat_metrics_proxying_hostname', when: "{{ matrix_mautrix_googlechat_metrics_proxying_enabled }}"}
  21. - {'name': 'matrix_mautrix_googlechat_metrics_proxying_path_prefix', when: "{{ matrix_mautrix_googlechat_metrics_proxying_enabled }}"}
  22. - {'name': 'matrix_mautrix_googlechat_container_labels_public_endpoint_hostname', when: "{{ matrix_mautrix_googlechat_container_labels_public_endpoint_enabled }}"}
  23. - {'name': 'matrix_mautrix_googlechat_container_labels_public_endpoint_path_prefix', when: "{{ matrix_mautrix_googlechat_container_labels_public_endpoint_enabled }}"}
  24. - name: (Deprecation) Catch and report renamed mautrix-googlechat variables
  25. ansible.builtin.fail:
  26. msg: >-
  27. Your configuration contains a variable, which now has a different name.
  28. Please rename the variable (`{{ item.old }}` -> `{{ item.new }}`) on your configuration file (vars.yml).
  29. when: "lookup('ansible.builtin.varnames', ('^' + item.old + '$'), wantlist=True) | length > 0"
  30. with_items:
  31. - {'old': 'matrix_mautrix_googlechat_docker_image_name_prefix', 'new': 'matrix_mautrix_googlechat_docker_image_registry_prefix'}