Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

38 righe
2.3 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Fail if required mautrix-telegram settings not defined
  6. ansible.builtin.fail:
  7. msg: >-
  8. You need to define a required configuration setting (`{{ item.name }}`).
  9. when: "item.when | bool and vars[item.name] == ''"
  10. with_items:
  11. - {'name': 'matrix_mautrix_telegram_hostname', when: true}
  12. - {'name': 'matrix_mautrix_telegram_path_prefix', when: true}
  13. - {'name': 'matrix_mautrix_telegram_api_id', when: true}
  14. - {'name': 'matrix_mautrix_telegram_api_hash', when: true}
  15. - {'name': 'matrix_mautrix_telegram_public_endpoint', when: true}
  16. - {'name': 'matrix_mautrix_telegram_appservice_token', when: true}
  17. - {'name': 'matrix_mautrix_telegram_homeserver_address', when: true}
  18. - {'name': 'matrix_mautrix_telegram_homeserver_token', when: true}
  19. - {'name': 'matrix_mautrix_telegram_container_network', when: true}
  20. - {'name': 'matrix_mautrix_telegram_database_hostname', when: "{{ matrix_mautrix_telegram_database_engine == 'postgres' }}"}
  21. - {'name': 'matrix_mautrix_telegram_metrics_proxying_hostname', when: "{{ matrix_mautrix_telegram_metrics_proxying_enabled }}"}
  22. - {'name': 'matrix_mautrix_telegram_metrics_proxying_path_prefix', when: "{{ matrix_mautrix_telegram_metrics_proxying_enabled }}"}
  23. - name: (Deprecation) Catch and report renamed Telegram 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_telegram_container_exposed_port_number', 'new': '<superseded by matrix_mautrix_telegram_container_http_host_bind_port>'}
  31. - {'old': 'matrix_mautrix_telegram_container_self_build', 'new': 'matrix_mautrix_telegram_container_image_self_build'}
  32. - {'old': 'matrix_telegram_lottieconverter_container_self_build', 'new': 'matrix_mautrix_telegram_container_image_self_build'}
  33. - {'old': 'matrix_telegram_lottieconverter_container_self_build_mask_arch', 'new': 'matrix_telegram_lottieconverter_container_image_self_build_mask_arch'}
  34. - {'old': 'matrix_mautrix_telegram_login_shared_secret', 'new': '<removed>'}