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.
 
 

32 rader
1.4 KiB

  1. # SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Fail if required WeChat 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_wechat_appservice_token', when: true}
  12. - {'name': 'matrix_wechat_homeserver_address', when: true}
  13. - {'name': 'matrix_wechat_homeserver_token', when: true}
  14. - {'name': 'matrix_wechat_database_hostname', when: "{{ matrix_wechat_database_engine == 'postgres' }}"}
  15. - {'name': 'matrix_wechat_container_network', when: true}
  16. - {'name': 'matrix_wechat_bridge_listen_secret', when: true}
  17. - name: Fail if WeChat enabled on ARM64 (not supported by the wechat agent, even with self-building)
  18. when: matrix_architecture not in ['amd64']
  19. ansible.builtin.fail:
  20. msg: "The WeChat Agent does not support the '{{ matrix_architecture }}' architecture yet. Its Dockerfile downloads amd64 binaries and does not work on arm64."
  21. - name: (Deprecation) Catch and report renamed WeChat variables
  22. ansible.builtin.fail:
  23. msg: >-
  24. The variable `{{ item.old }}` is deprecated. Please use `{{ item.new }}` instead.
  25. when: "item.old in vars"
  26. with_items:
  27. - {'old': 'matrix_wechat_container_image_name_prefix', 'new': 'matrix_wechat_container_image_registry_prefix'}