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

31 строка
1.1 KiB

  1. ---
  2. # If the matrix-synapse role is not used, `matrix_synapse_role_executed` won't exist.
  3. # We don't want to fail in such cases.
  4. - name: Fail if matrix-synapse role already executed
  5. ansible.builtin.fail:
  6. msg: >-
  7. The matrix-sms-bridge role needs to execute before the matrix-synapse role.
  8. when: "matrix_sms_bridge_enabled and matrix_synapse_role_executed | default(False)"
  9. - ansible.builtin.set_fact:
  10. matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-sms-bridge.service'] }}"
  11. when: matrix_sms_bridge_enabled | bool
  12. # If the matrix-synapse role is not used, these variables may not exist.
  13. - ansible.builtin.set_fact:
  14. matrix_synapse_container_extra_arguments: >
  15. {{
  16. matrix_synapse_container_extra_arguments | default([])
  17. +
  18. ["--mount type=bind,src={{ matrix_sms_bridge_config_path }}/registration.yaml,dst=/matrix-sms-bridge-registration.yaml,ro"]
  19. }}
  20. matrix_synapse_app_service_config_files: >
  21. {{
  22. matrix_synapse_app_service_config_files | default([])
  23. +
  24. ["/matrix-sms-bridge-registration.yaml"]
  25. }}
  26. when: matrix_sms_bridge_enabled | bool