sysctl: Update custom sysctl file example

This commit is contained in:
Pavel Knoblokh 2025-01-13 14:16:28 +10:00
parent 44a2151dbf
commit 817b94dee0
No known key found for this signature in database

View file

@ -73,12 +73,13 @@ EXAMPLES = r'''
state: absent state: absent
sysctl_file: /etc/sysctl.conf sysctl_file: /etc/sysctl.conf
# Set kernel.panic to 3 in /tmp/test_sysctl.conf # Enable resource limits management in FreeBSD
- ansible.posix.sysctl: - ansible.posix.sysctl:
name: kernel.panic name: kern.racct.enable
value: '3' value: '1'
sysctl_file: /tmp/test_sysctl.conf state: present
reload: false reload: false
sysctl_file: /boot/loader.conf
# Set ip forwarding on in /proc and verify token value with the sysctl command # Set ip forwarding on in /proc and verify token value with the sysctl command
- ansible.posix.sysctl: - ansible.posix.sysctl: