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-space
This commit is contained in:
parent
a8740c6e13
commit
10e54eca26
1 changed files with 4 additions and 3 deletions
|
@ -108,8 +108,9 @@
|
||||||
name: nf_conntrack_ipv4
|
name: nf_conntrack_ipv4
|
||||||
state: present
|
state: present
|
||||||
register: enable_nf_conntrack
|
register: enable_nf_conntrack
|
||||||
ignore_errors: yes
|
when:
|
||||||
when: kube_proxy_mode == 'ipvs'
|
- ansible_kernel.split('.')[0:3] | join('.') < '4.19'
|
||||||
|
- kube_proxy_mode == 'ipvs'
|
||||||
tags:
|
tags:
|
||||||
- kube-proxy
|
- kube-proxy
|
||||||
|
|
||||||
|
@ -118,7 +119,7 @@
|
||||||
name: nf_conntrack
|
name: nf_conntrack
|
||||||
state: present
|
state: present
|
||||||
when:
|
when:
|
||||||
- enable_nf_conntrack is failed
|
- ansible_kernel.split('.')[0:3] | join('.') >= '4.19'
|
||||||
- kube_proxy_mode == 'ipvs'
|
- kube_proxy_mode == 'ipvs'
|
||||||
tags:
|
tags:
|
||||||
- kube-proxy
|
- kube-proxy
|
||||||
|
|
Loading…
Reference in a new issue