Matrix Docker Ansible eploy
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

34 rader
2.0 KiB

  1. # SPDX-FileCopyrightText: 2021 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2022 - 2024 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. ---
  7. - name: Fail if required mautrix-googlechat 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_googlechat_public_endpoint', when: true}
  14. - {'name': 'matrix_mautrix_googlechat_appservice_token', when: true}
  15. - {'name': 'matrix_mautrix_googlechat_homeserver_token', when: true}
  16. - {'name': 'matrix_mautrix_googlechat_database_hostname', when: "{{ matrix_mautrix_googlechat_database_engine == 'postgres' }}"}
  17. - {'name': 'matrix_mautrix_googlechat_container_network', when: true}
  18. - {'name': 'matrix_mautrix_googlechat_homeserver_address', when: true}
  19. - {'name': 'matrix_mautrix_googlechat_metrics_proxying_hostname', when: "{{ matrix_mautrix_googlechat_metrics_proxying_enabled }}"}
  20. - {'name': 'matrix_mautrix_googlechat_metrics_proxying_path_prefix', when: "{{ matrix_mautrix_googlechat_metrics_proxying_enabled }}"}
  21. - {'name': 'matrix_mautrix_googlechat_container_labels_public_endpoint_hostname', when: "{{ matrix_mautrix_googlechat_container_labels_public_endpoint_enabled }}"}
  22. - {'name': 'matrix_mautrix_googlechat_container_labels_public_endpoint_path_prefix', when: "{{ matrix_mautrix_googlechat_container_labels_public_endpoint_enabled }}"}
  23. - name: (Deprecation) Catch and report renamed mautrix-googlechat variables
  24. ansible.builtin.fail:
  25. msg: >-
  26. Your configuration contains a variable, which now has a different name.
  27. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  28. when: "item.old in vars"
  29. with_items:
  30. - {'old': 'matrix_mautrix_googlechat_docker_image_name_prefix', 'new': 'matrix_mautrix_googlechat_docker_image_registry_prefix'}