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.
 
 

26 regels
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. fail:
  6. msg: >-
  7. The matrix-bridge-appservice-discord role needs to execute before the matrix-synapse role.
  8. when: "matrix_appservice_discord_enabled and matrix_synapse_role_executed|default(False)"
  9. - set_fact:
  10. matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-appservice-discord.service'] }}"
  11. when: matrix_appservice_discord_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_appservice_discord_config_path }}/registration.yaml,dst=/matrix-appservice-discord-registration.yaml,ro"]
  18. matrix_synapse_app_service_config_files: >
  19. {{ matrix_synapse_app_service_config_files|default([]) }}
  20. +
  21. {{ ["/matrix-appservice-discord-registration.yaml"] }}
  22. when: matrix_appservice_discord_enabled|bool