Author: Robert Kaussow <xoxys@rknet.org>
Date:   Sun Jan 29 15:31:08 2023 +0100

    feat: add option to add custom sysctl configs (#2)
This commit is contained in:
Robert Kaussow 2023-01-29 14:34:41 +00:00
parent 844d2dbc88
commit 464c864edd

View File

@ -3,7 +3,7 @@ title: kernel
type: docs
---
[![Source Code](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white)](https://gitea.rknet.org/ansible/xoxys.kernel) [![Build Status](https://img.shields.io/drone/build/ansible/xoxys.kernel?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.kernel) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitea.rknet.org/ansible/xoxys.kernel/src/branch/main/LICENSE)
[![Source Code](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&amp;logoColor=white)](https://gitea.rknet.org/ansible/xoxys.kernel) [![Build Status](https://img.shields.io/drone/build/ansible/xoxys.kernel?logo=drone&amp;server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.kernel) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitea.rknet.org/ansible/xoxys.kernel/src/branch/main/LICENSE)
Configure kernel parameters and coredump settings.
@ -12,6 +12,7 @@ Configure kernel parameters and coredump settings.
- [Default Variables](#default-variables)
- [kernel_blacklist_modules](#kernel_blacklist_modules)
- [kernel_coredump_enabled](#kernel_coredump_enabled)
- [kernel_custom_config](#kernel_custom_config)
- [kernel_disable_modules](#kernel_disable_modules)
- [kernel_ipv4_forwarding_enabled](#kernel_ipv4_forwarding_enabled)
- [kernel_ipv4_ping_group_range](#kernel_ipv4_ping_group_range)
@ -40,6 +41,26 @@ kernel_blacklist_modules: []
kernel_coredump_enabled: true
```
### kernel_custom_config
#### Default value
```YAML
kernel_custom_config: []
```
#### Example usage
```YAML
kernel_custom_config:
- file: 90-example
content:
- name: vm.panic_on_oom
value: 0
- name: vm.overcommit_memory
value: 1
```
### kernel_disable_modules
#### Default value