Move matrix-email2matrix to its own container network
This commit is contained in:
@ -56,6 +56,11 @@
|
||||
pull: true
|
||||
when: "matrix_email2matrix_container_image_self_build | bool"
|
||||
|
||||
- name: Ensure matrix-email2matrix container network is created
|
||||
community.general.docker_network:
|
||||
name: "{{ matrix_email2matrix_container_network }}"
|
||||
driver: bridge
|
||||
|
||||
- name: Ensure matrix-email2matrix.service installed
|
||||
ansible.builtin.template:
|
||||
src: "{{ role_path }}/templates/systemd/matrix-email2matrix.service.j2"
|
||||
|
@ -5,3 +5,13 @@
|
||||
msg: >
|
||||
You need to define at least one mapping in `matrix_email2matrix_matrix_mappings` for enabling Email2Matrix.
|
||||
when: "matrix_email2matrix_matrix_mappings | length == 0"
|
||||
|
||||
- name: Fail if required email2matrix 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_email2matrix_container_network', when: true}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user