From 5c66485c991b8a79a62c105d35eab661da0c2e3e Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sat, 20 Jan 2024 15:40:56 +0200 Subject: [PATCH] Ensure matrix-bot-mjolnir container network is created Most addons live in the same network by default (matrix-addons) right now, so this network would have usually been created by some other addon. Howevre, if this is the only addon someone uses, it may have remained uncreated causing a problem. --- roles/custom/matrix-bot-mjolnir/tasks/setup_install.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/custom/matrix-bot-mjolnir/tasks/setup_install.yml b/roles/custom/matrix-bot-mjolnir/tasks/setup_install.yml index 3088fe8bd..085049bdd 100644 --- a/roles/custom/matrix-bot-mjolnir/tasks/setup_install.yml +++ b/roles/custom/matrix-bot-mjolnir/tasks/setup_install.yml @@ -59,6 +59,11 @@ owner: "{{ matrix_user_username }}" group: "{{ matrix_user_groupname }}" +- name: Ensure matrix-bot-mjolnir container network is created + community.general.docker_network: + name: "{{ matrix_bot_mjolnir_container_network }}" + driver: bridge + - name: Ensure matrix-bot-mjolnir.service installed ansible.builtin.template: src: "{{ role_path }}/templates/systemd/matrix-bot-mjolnir.service.j2"