From 817b94dee03d65437a955b4a82d8445c76af2618 Mon Sep 17 00:00:00 2001 From: Pavel Knoblokh Date: Mon, 13 Jan 2025 14:16:28 +1000 Subject: [PATCH] sysctl: Update custom sysctl file example --- plugins/modules/sysctl.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/modules/sysctl.py b/plugins/modules/sysctl.py index 3edcc72..d9434b4 100644 --- a/plugins/modules/sysctl.py +++ b/plugins/modules/sysctl.py @@ -73,12 +73,13 @@ EXAMPLES = r''' state: absent sysctl_file: /etc/sysctl.conf -# Set kernel.panic to 3 in /tmp/test_sysctl.conf +# Enable resource limits management in FreeBSD - ansible.posix.sysctl: - name: kernel.panic - value: '3' - sysctl_file: /tmp/test_sysctl.conf + name: kern.racct.enable + value: '1' + state: present reload: false + sysctl_file: /boot/loader.conf # Set ip forwarding on in /proc and verify token value with the sysctl command - ansible.posix.sysctl: