Untangle the setup import/include mess in matrix-synapse

This commit is contained in:
Slavi Pantaleev
2022-11-24 16:27:11 +02:00
parent d29b0aeddb
commit 2e7b5c7b02
9 changed files with 113 additions and 58 deletions

View File

@ -20,8 +20,11 @@
- when: matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
# This handles both install and uninstal. It's quite messy and should be reworked.
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_synapse.yml"
- when: matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
- when: not matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
tags:
- setup-all
- setup-synapse