This role lets you set permanent sysctl values. The changes are applied immediately.
Name | Required | Example | Description |
---|---|---|---|
file |
yes | 99-wireguard |
Filename without extension to be placed under /etc/sysctl.d . |
option |
yes | net.ipv4.ip_forward |
sysctl option. |
value |
yes | 1 |
sysctl value. |
- include_role:
name: noobient.sysctl
vars:
file: '99-wireguard'
option: 'net.ipv4.ip_forward'
value: '1'
N/A
Platform | Support | Status |
---|---|---|
Linter | ✅ | |
AlmaLinux 8 | ✅ | |
AlmaLinux 9 | ✅ | |
Fedora 40 | ✅ | |
Fedora 41 | ✅ | |
Ubuntu 20.04 | ✅ | |
Ubuntu 22.04 | ✅ | |
Ubuntu 24.04 | ✅ |