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