fix: provide an option to ignore sysctl errors about unknown keys (#12514)

* fix: provide an option to ignore sysctl errors about unknown keys

* fix: rename sysctl_ignoreerrors and remove useless var definitions
This commit is contained in:
David Bidorff
2025-09-01 16:07:14 +02:00
committed by GitHub
parent eb26449e80
commit fe7592dd0c
6 changed files with 15 additions and 0 deletions

View File

@@ -50,6 +50,7 @@
sysctl_file: "{{ sysctl_file_path }}"
state: present
reload: true
ignoreerrors: "{{ sysctl_ignore_unknown_keys }}"
when: kube_apiserver_node_port_range is defined
tags:
- kube-proxy
@@ -100,6 +101,7 @@
sysctl_file: "{{ sysctl_file_path }}"
value: "1"
reload: true
ignoreerrors: "{{ sysctl_ignore_unknown_keys }}"
when: sysctl_bridge_nf_call_iptables.rc == 0
with_items:
- net.bridge.bridge-nf-call-iptables