Move matrix-registration service to its own network and add native Traefik support

This commit is contained in:
Slavi Pantaleev
2024-01-12 17:17:12 +02:00
parent 13e47fc3f5
commit 4018aa38b3
8 changed files with 164 additions and 91 deletions

View File

@ -97,6 +97,21 @@
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"
- name: Ensure matrix-registration support files installed
ansible.builtin.template:
src: "{{ role_path }}/templates/{{ item }}.j2"
dest: "{{ matrix_registration_base_path }}/{{ item }}"
mode: 0640
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"
with_items:
- labels
- name: Ensure matrix-registration container network is created
community.general.docker_network:
name: "{{ matrix_registration_container_network }}"
driver: bridge
- name: Ensure matrix-registration.service installed
ansible.builtin.template:
src: "{{ role_path }}/templates/systemd/matrix-registration.service.j2"