Преглед изворни кода

Add missing network-creation tasks for some bot roles

pull/3093/head
Slavi Pantaleev пре 2 година
родитељ
комит
6deb99f31b
4 измењених фајлова са 20 додато и 5 уклоњено
  1. +5
    -0
      roles/custom/matrix-bot-draupnir/tasks/setup_install.yml
  2. +5
    -5
      roles/custom/matrix-bot-go-neb/tasks/install.yml
  3. +5
    -0
      roles/custom/matrix-bot-matrix-registration-bot/tasks/setup_install.yml
  4. +5
    -0
      roles/custom/matrix-bot-matrix-reminder-bot/tasks/setup_install.yml

+ 5
- 0
roles/custom/matrix-bot-draupnir/tasks/setup_install.yml Прегледај датотеку

@@ -59,6 +59,11 @@
owner: "{{ matrix_user_username }}" owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}" 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 - name: Ensure matrix-bot-draupnir.service installed
ansible.builtin.template: ansible.builtin.template:
src: "{{ role_path }}/templates/systemd/matrix-bot-draupnir.service.j2" src: "{{ role_path }}/templates/systemd/matrix-bot-draupnir.service.j2"


+ 5
- 5
roles/custom/matrix-bot-go-neb/tasks/install.yml Прегледај датотеку

@@ -32,11 +32,6 @@
- env - env
- labels - 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 - name: Ensure go-neb container image is pulled
community.docker.docker_image: community.docker.docker_image:
name: "{{ matrix_bot_go_neb_container_image }}" name: "{{ matrix_bot_go_neb_container_image }}"
@@ -48,6 +43,11 @@
delay: "{{ devture_playbook_help_container_retries_delay }}" delay: "{{ devture_playbook_help_container_retries_delay }}"
until: result is not failed 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 - name: Ensure matrix-bot-go-neb.service installed
ansible.builtin.template: ansible.builtin.template:
src: "{{ role_path }}/templates/systemd/matrix-bot-go-neb.service.j2" src: "{{ role_path }}/templates/systemd/matrix-bot-go-neb.service.j2"


+ 5
- 0
roles/custom/matrix-bot-matrix-registration-bot/tasks/setup_install.yml Прегледај датотеку

@@ -56,6 +56,11 @@
pull: true pull: true
when: "matrix_bot_matrix_registration_bot_container_image_self_build | bool" 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 - name: Ensure matrix-bot-matrix-registration-bot.service installed
ansible.builtin.template: ansible.builtin.template:
src: "{{ role_path }}/templates/systemd/matrix-bot-matrix-registration-bot.service.j2" src: "{{ role_path }}/templates/systemd/matrix-bot-matrix-registration-bot.service.j2"


+ 5
- 0
roles/custom/matrix-bot-matrix-reminder-bot/tasks/setup_install.yml Прегледај датотеку

@@ -84,6 +84,11 @@
owner: "{{ matrix_user_username }}" owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}" 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 - name: Ensure matrix-bot-matrix-reminder-bot.service installed
ansible.builtin.template: ansible.builtin.template:
src: "{{ role_path }}/templates/systemd/matrix-bot-matrix-reminder-bot.service.j2" src: "{{ role_path }}/templates/systemd/matrix-bot-matrix-reminder-bot.service.j2"


Loading…
Откажи
Сачувај