make better condition for applying nf_conntrack kernel tweak (#6267)
* MINOR: Check kernel version before enable modprobe nf_conntrack * CLEANUP: no more need to ignore error of this task * MINOR: Fixing yaml and ansible lint error - remove trailling-spacepull/6157/head
parent
a8740c6e13
commit
10e54eca26
|
@ -108,8 +108,9 @@
|
|||
name: nf_conntrack_ipv4
|
||||
state: present
|
||||
register: enable_nf_conntrack
|
||||
ignore_errors: yes
|
||||
when: kube_proxy_mode == 'ipvs'
|
||||
when:
|
||||
- ansible_kernel.split('.')[0:3] | join('.') < '4.19'
|
||||
- kube_proxy_mode == 'ipvs'
|
||||
tags:
|
||||
- kube-proxy
|
||||
|
||||
|
@ -118,7 +119,7 @@
|
|||
name: nf_conntrack
|
||||
state: present
|
||||
when:
|
||||
- enable_nf_conntrack is failed
|
||||
- ansible_kernel.split('.')[0:3] | join('.') >= '4.19'
|
||||
- kube_proxy_mode == 'ipvs'
|
||||
tags:
|
||||
- kube-proxy
|
||||
|
|
Loading…
Reference in New Issue