Move matrix-bridge-mx-puppet-twitter to its own container network and add native Traefik support

This commit is contained in:
Slavi Pantaleev
2024-01-08 17:55:49 +02:00
parent 1e19fee772
commit 8e8c9cc03b
8 changed files with 137 additions and 74 deletions

View File

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