Add missing network-creation tasks for some bot roles

This commit is contained in:
Slavi Pantaleev 2024-01-07 09:46:09 +02:00
parent a794db4c38
commit 6deb99f31b
4 changed files with 20 additions and 5 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"