sysctl: Add custom sysctl file example (#606) (#733)

(cherry picked from commit 1b8aeb03cb)

Co-authored-by: Pavel Knoblokh <Pashugan@users.noreply.github.com>
This commit is contained in:
Hideki Saito
2026-05-18 11:05:46 +09:00
committed by GitHub
parent 8b5bba6fa1
commit 165babdd69

View File

@@ -80,6 +80,13 @@ EXAMPLES = r'''
sysctl_file: /tmp/test_sysctl.conf
reload: false
# Enable resource limits management in FreeBSD
- ansible.posix.sysctl:
name: kern.racct.enable
value: '1'
sysctl_file: /boot/loader.conf
reload: false
# Set ip forwarding on in /proc and verify token value with the sysctl command
- ansible.posix.sysctl:
name: net.ipv4.ip_forward