From 03b9f39d31584df811720d3ad8e97d73f7e43df5 Mon Sep 17 00:00:00 2001 From: mrekucci Date: Fri, 5 Jul 2024 14:32:43 +0200 Subject: [PATCH] fix(infra): ensure kernel bridge module is loaded (#201) --- infrastructure/nomad/playbooks/init.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/infrastructure/nomad/playbooks/init.yml b/infrastructure/nomad/playbooks/init.yml index 92f604bee..1c4f1b80f 100644 --- a/infrastructure/nomad/playbooks/init.yml +++ b/infrastructure/nomad/playbooks/init.yml @@ -35,6 +35,7 @@ - openssl - httping - iptables + - bridge-utils - apt-transport-https - python3 - python3-pip @@ -66,6 +67,11 @@ state: present ignore_errors: yes + - name: Ensure Kernel Bridge Module is Loaded + shell: | + modprobe bridge + if ! grep -q '^bridge$' /etc/modules; then echo "bridge" >> /etc/modules; fi + - name: Include Common Variables include_vars: file: variables/common.yml