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

27 строки
1.0 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. 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. - 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. - set_fact:
  14. matrix_synapse_container_extra_arguments: >
  15. {{ matrix_synapse_container_extra_arguments|default([]) }}
  16. +
  17. ["--mount type=bind,src={{ matrix_sms_bridge_config_path }}/registration.yaml,dst=/matrix-sms-bridge-registration.yaml,ro"]
  18. matrix_synapse_app_service_config_files: >
  19. {{ matrix_synapse_app_service_config_files|default([]) }}
  20. +
  21. {{ ["/matrix-sms-bridge-registration.yaml"] }}
  22. when: matrix_sms_bridge_enabled|bool