From e62680388232b8176fc353d63c0d0793859edbae Mon Sep 17 00:00:00 2001 From: Michael LoSapio Date: Thu, 30 Jun 2016 19:27:41 -0400 Subject: [PATCH] Showing some of the sysctl settings in proper yaml format per Ansible documentation (#4073) --- system/sysctl.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/system/sysctl.py b/system/sysctl.py index d5826f1f267..3df8e1fef88 100644 --- a/system/sysctl.py +++ b/system/sysctl.py @@ -76,10 +76,16 @@ author: "David CHANIAL (@davixx) " EXAMPLES = ''' # Set vm.swappiness to 5 in /etc/sysctl.conf -- sysctl: name=vm.swappiness value=5 state=present +- sysctl: + name: vm.swappiness + value: 5 + state: present # Remove kernel.panic entry from /etc/sysctl.conf -- sysctl: name=kernel.panic state=absent sysctl_file=/etc/sysctl.conf +- sysctl: + name: kernel.panic + state: absent + sysctl_file: /etc/sysctl.conf # Set kernel.panic to 3 in /tmp/test_sysctl.conf - sysctl: name=kernel.panic value=3 sysctl_file=/tmp/test_sysctl.conf reload=no