Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

24 líneas
1.1 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 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."