From 1b8aeb03cb09ed26fbdf6f9e7c0628efdb565efc Mon Sep 17 00:00:00 2001 From: Pavel Knoblokh Date: Thu, 27 Mar 2025 12:21:08 +1000 Subject: [PATCH] sysctl: Add custom sysctl file example (#606) --- plugins/modules/sysctl.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/modules/sysctl.py b/plugins/modules/sysctl.py index 3edcc72..86712db 100644 --- a/plugins/modules/sysctl.py +++ b/plugins/modules/sysctl.py @@ -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