sysctl: Add custom sysctl file example

This commit is contained in:
Pavel Knoblokh 2025-03-26 17:40:29 +10:00
parent 44a2151dbf
commit da3b7810bf
No known key found for this signature in database

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