parent
d07480a883
commit
2e0dfb2dc1
@ -1,21 +0,0 @@
|
|||||||
---
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mautrix-slack.service'] }}"
|
|
||||||
when: matrix_mautrix_slack_enabled | bool
|
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_container_runtime_injected_arguments | default([])
|
|
||||||
+
|
|
||||||
["--mount type=bind,src={{ matrix_mautrix_slack_config_path }}/registration.yaml,dst=/matrix-mautrix-slack-registration.yaml,ro"]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files: >
|
|
||||||
{{
|
|
||||||
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
|
||||||
+
|
|
||||||
["/matrix-mautrix-slack-registration.yaml"]
|
|
||||||
}}
|
|
||||||
when: matrix_mautrix_slack_enabled | bool
|
|
@ -1,22 +1,20 @@
|
|||||||
---
|
---
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
||||||
tags:
|
|
||||||
- always
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- block:
|
||||||
when: "run_setup | bool and matrix_mautrix_slack_enabled | bool"
|
- when: matrix_mautrix_slack_enabled | bool
|
||||||
tags:
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- setup-all
|
|
||||||
- setup-mautrix-slack
|
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
- when: matrix_mautrix_slack_enabled | bool
|
||||||
when: "run_setup and matrix_mautrix_slack_enabled"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mautrix-slack
|
- setup-mautrix-slack
|
||||||
|
- install-all
|
||||||
|
- install-mautrix-slack
|
||||||
|
|
||||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
- block:
|
||||||
when: "run_setup and not matrix_mautrix_slack_enabled"
|
- when: not matrix_mautrix_slack_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-mautrix-slack
|
- setup-mautrix-slack
|
||||||
|
Loading…
Reference in new issue