Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
995 B

  1. ---
  2. - name: Fail if required WeChat settings not defined
  3. ansible.builtin.fail:
  4. msg: >-
  5. You need to define a required configuration setting (`{{ item.name }}`).
  6. when: "item.when | bool and vars[item.name] == ''"
  7. with_items:
  8. - {'name': 'matrix_wechat_appservice_token', when: true}
  9. - {'name': 'matrix_wechat_homeserver_address', when: true}
  10. - {'name': 'matrix_wechat_homeserver_token', when: true}
  11. - {'name': 'matrix_wechat_database_hostname', when: "{{ matrix_wechat_database_engine == 'postgres' }}"}
  12. - {'name': 'matrix_wechat_container_network', when: true}
  13. - {'name': 'matrix_wechat_bridge_listen_secret', when: true}
  14. - name: Fail if WeChat enabled on ARM64 (not supported by the wechat agent, even with self-building)
  15. when: matrix_architecture not in ['amd64']
  16. ansible.builtin.fail:
  17. msg: "The WeChat Agent does not support the '{{ matrix_architecture }}' architecture yet. Its Dockerfile downloads amd64 binaries and does not work on arm64."