From 6deb99f31bf2e6c2e50024c390d566ec5e94e2ac Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sun, 7 Jan 2024 09:46:09 +0200 Subject: [PATCH] Add missing network-creation tasks for some bot roles --- .../custom/matrix-bot-draupnir/tasks/setup_install.yml | 5 +++++ roles/custom/matrix-bot-go-neb/tasks/install.yml | 10 +++++----- .../tasks/setup_install.yml | 5 +++++ .../tasks/setup_install.yml | 5 +++++ 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/roles/custom/matrix-bot-draupnir/tasks/setup_install.yml b/roles/custom/matrix-bot-draupnir/tasks/setup_install.yml index 4808f71fc..761ae8897 100644 --- a/roles/custom/matrix-bot-draupnir/tasks/setup_install.yml +++ b/roles/custom/matrix-bot-draupnir/tasks/setup_install.yml @@ -59,6 +59,11 @@ owner: "{{ matrix_user_username }}" group: "{{ matrix_user_groupname }}" +- name: Ensure matrix-bot-draupnir container network is created + community.general.docker_network: + name: "{{ matrix_bot_draupnir_container_network }}" + driver: bridge + - name: Ensure matrix-bot-draupnir.service installed ansible.builtin.template: src: "{{ role_path }}/templates/systemd/matrix-bot-draupnir.service.j2" diff --git a/roles/custom/matrix-bot-go-neb/tasks/install.yml b/roles/custom/matrix-bot-go-neb/tasks/install.yml index 9cb85db39..d251248af 100644 --- a/roles/custom/matrix-bot-go-neb/tasks/install.yml +++ b/roles/custom/matrix-bot-go-neb/tasks/install.yml @@ -32,11 +32,6 @@ - env - labels -- name: Ensure go-neb container network is created - community.general.docker_network: - name: "{{ matrix_bot_go_neb_container_network }}" - driver: bridge - - name: Ensure go-neb container image is pulled community.docker.docker_image: name: "{{ matrix_bot_go_neb_container_image }}" @@ -48,6 +43,11 @@ delay: "{{ devture_playbook_help_container_retries_delay }}" until: result is not failed +- name: Ensure go-neb container network is created + community.general.docker_network: + name: "{{ matrix_bot_go_neb_container_network }}" + driver: bridge + - name: Ensure matrix-bot-go-neb.service installed ansible.builtin.template: src: "{{ role_path }}/templates/systemd/matrix-bot-go-neb.service.j2" diff --git a/roles/custom/matrix-bot-matrix-registration-bot/tasks/setup_install.yml b/roles/custom/matrix-bot-matrix-registration-bot/tasks/setup_install.yml index 2532ab522..2b07f439e 100644 --- a/roles/custom/matrix-bot-matrix-registration-bot/tasks/setup_install.yml +++ b/roles/custom/matrix-bot-matrix-registration-bot/tasks/setup_install.yml @@ -56,6 +56,11 @@ pull: true when: "matrix_bot_matrix_registration_bot_container_image_self_build | bool" +- name: Ensure matrix-registration-bot container network is created + community.general.docker_network: + name: "{{ matrix_bot_matrix_registration_bot_container_network }}" + driver: bridge + - name: Ensure matrix-bot-matrix-registration-bot.service installed ansible.builtin.template: src: "{{ role_path }}/templates/systemd/matrix-bot-matrix-registration-bot.service.j2" diff --git a/roles/custom/matrix-bot-matrix-reminder-bot/tasks/setup_install.yml b/roles/custom/matrix-bot-matrix-reminder-bot/tasks/setup_install.yml index 267cbaecd..27b9f89ed 100644 --- a/roles/custom/matrix-bot-matrix-reminder-bot/tasks/setup_install.yml +++ b/roles/custom/matrix-bot-matrix-reminder-bot/tasks/setup_install.yml @@ -84,6 +84,11 @@ owner: "{{ matrix_user_username }}" group: "{{ matrix_user_groupname }}" +- name: Ensure matrix-reminder-bot container network is created + community.general.docker_network: + name: "{{ matrix_bot_matrix_reminder_bot_container_network }}" + driver: bridge + - name: Ensure matrix-bot-matrix-reminder-bot.service installed ansible.builtin.template: src: "{{ role_path }}/templates/systemd/matrix-bot-matrix-reminder-bot.service.j2"