Matrix Docker Ansible eploy
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

47 rindas
3.5 KiB

  1. # SPDX-FileCopyrightText: 2019 - 2024 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-telegram 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_telegram_hostname', when: true}
  13. - {'name': 'matrix_mautrix_telegram_path_prefix', when: true}
  14. - {'name': 'matrix_mautrix_telegram_api_id', when: true}
  15. - {'name': 'matrix_mautrix_telegram_api_hash', when: true}
  16. - {'name': 'matrix_mautrix_telegram_public_endpoint', when: true}
  17. - {'name': 'matrix_mautrix_telegram_appservice_token', when: true}
  18. - {'name': 'matrix_mautrix_telegram_homeserver_address', when: true}
  19. - {'name': 'matrix_mautrix_telegram_homeserver_token', when: true}
  20. - {'name': 'matrix_mautrix_telegram_container_network', when: true}
  21. - {'name': 'matrix_mautrix_telegram_database_hostname', when: "{{ matrix_mautrix_telegram_database_engine == 'postgres' }}"}
  22. - {'name': 'matrix_mautrix_telegram_metrics_proxying_hostname', when: "{{ matrix_mautrix_telegram_metrics_proxying_enabled }}"}
  23. - {'name': 'matrix_mautrix_telegram_metrics_proxying_path_prefix', when: "{{ matrix_mautrix_telegram_metrics_proxying_enabled }}"}
  24. - name: (Deprecation) Catch and report renamed mautrix-telegram variables
  25. ansible.builtin.fail:
  26. msg: >-
  27. Your configuration contains a variable, which now has a different name.
  28. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  29. when: "item.old in vars"
  30. with_items:
  31. - {'old': 'matrix_mautrix_telegram_container_exposed_port_number', 'new': '<superseded by matrix_mautrix_telegram_container_http_host_bind_port>'}
  32. - {'old': 'matrix_mautrix_telegram_container_self_build', 'new': 'matrix_mautrix_telegram_container_image_self_build'}
  33. - {'old': 'matrix_mautrix_telegram_lottieconverter_container_self_build', 'new': 'matrix_mautrix_telegram_container_image_self_build'}
  34. - {'old': 'matrix_mautrix_telegram_lottieconverter_container_self_build_mask_arch', 'new': 'matrix_mautrix_telegram_lottieconverter_container_image_self_build_mask_arch'}
  35. - {'old': 'matrix_mautrix_telegram_login_shared_secret', 'new': '<removed>'}
  36. - {'old': 'matrix_mautrix_telegram_lottieconverter_docker_image_name_prefix', 'new': 'matrix_mautrix_telegram_lottieconverter_docker_image_registry_prefix'}
  37. - {'old': 'matrix_mautrix_telegram_docker_image_name_prefix', 'new': 'matrix_mautrix_telegram_docker_image_registry_prefix'}
  38. - {'old': 'matrix_telegram_lottieconverter_container_image_self_build', 'new': 'matrix_mautrix_telegram_lottieconverter_container_image_self_build'}
  39. - {'old': 'matrix_telegram_lottieconverter_container_image_self_build_mask_arch', 'new': 'matrix_mautrix_telegram_lottieconverter_container_image_self_build_mask_arch'}
  40. - {'old': 'matrix_telegram_lottieconverter_docker_repo', 'new': 'matrix_mautrix_telegram_lottieconverter_docker_repo'}
  41. - {'old': 'matrix_telegram_lottieconverter_docker_repo_version', 'new': 'matrix_mautrix_telegram_lottieconverter_docker_repo_version'}
  42. - {'old': 'matrix_telegram_lottieconverter_docker_src_files_path', 'new': 'matrix_mautrix_telegram_lottieconverter_docker_src_files_path'}
  43. - {'old': 'matrix_telegram_lottieconverter_docker_image', 'new': 'matrix_mautrix_telegram_lottieconverter_docker_image'}