fix 内核4.19加载nf_conntrack #366

pull/375/head
gjmzj 2018-11-10 09:52:57 +08:00
parent 43c48e0146
commit 313d11111e
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,11 @@
- nf_conntrack_ipv4 - nf_conntrack_ipv4
ignore_errors: true ignore_errors: true
- name: 加载nf_conntrack for kernel 4.19
modprobe: name=nf_conntrack state=present
ignore_errors: true
when: '"4.19" in ansible_kernel'
# 设置系统参数for k8s # 设置系统参数for k8s
# 消除docker info 警告WARNING: bridge-nf-call-ip[6]tables is disabled # 消除docker info 警告WARNING: bridge-nf-call-ip[6]tables is disabled
- name: 设置系统参数 - name: 设置系统参数