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

33 строки
1.6 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 lookup('vars', item.name, default='') | string | length == 0"
  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: "lookup('ansible.builtin.varnames', ('^' + item.old + '$'), wantlist=True) | length > 0"
  26. with_items:
  27. - {'old': 'matrix_wechat_container_image_name_prefix', 'new': 'matrix_wechat_container_image_registry_prefix'}
  28. - {'old': 'matrix_wechat_agent_container_image_name_prefix', 'new': 'matrix_wechat_agent_container_image_registry_prefix'}