From 7611edcbdf54c3fb87861e219aead5e3f498e74f Mon Sep 17 00:00:00 2001 From: tracybin Date: Thu, 11 Jan 2018 18:34:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=90=AFipv4=E5=86=85=E6=A0=B8?= =?UTF-8?q?=E8=BD=AC=E5=8F=91=E4=B9=8B=E5=89=8D=E5=8A=A0=E8=BD=BDbr=5Fnetf?= =?UTF-8?q?ilter=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/prepare/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/prepare/tasks/main.yml b/roles/prepare/tasks/main.yml index 52eb296..0f3786c 100644 --- a/roles/prepare/tasks/main.yml +++ b/roles/prepare/tasks/main.yml @@ -62,6 +62,9 @@ - name: 设置系统参数 copy: src=95-k8s-sysctl.conf dest=/etc/sysctl.d/95-k8s-sysctl.conf +- name: 加载br_netfilter模块 + shell: "modprobe br_netfilter" + - name: 生效系统参数 shell: "sysctl -p /etc/sysctl.d/95-k8s-sysctl.conf" ignore_errors: true