Put all homeservers in the matrix-homeserver container network
This commit is contained in:
@ -6,6 +6,9 @@
|
||||
- install-all
|
||||
- install-conduit
|
||||
block:
|
||||
- when: matrix_conduit_enabled | bool
|
||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||
|
||||
- when: matrix_conduit_enabled | bool
|
||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||
|
||||
|
9
roles/custom/matrix-conduit/tasks/validate_config.yml
Normal file
9
roles/custom/matrix-conduit/tasks/validate_config.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
|
||||
- name: Fail if required Conduit settings not defined
|
||||
ansible.builtin.fail:
|
||||
msg: >-
|
||||
You need to define a required configuration setting (`{{ item.name }}`).
|
||||
when: "item.when | bool and vars[item.name] == ''"
|
||||
with_items:
|
||||
- {'name': 'matrix_conduit_container_network', when: true}
|
Reference in New Issue
Block a user