Showing some of the sysctl settings in proper yaml format per Ansible documentation (#4073)
This commit is contained in:
parent
4a532fb60c
commit
20d8103b53
1 changed files with 8 additions and 2 deletions
|
@ -76,10 +76,16 @@ author: "David CHANIAL (@davixx) <david.chanial@gmail.com>"
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# Set vm.swappiness to 5 in /etc/sysctl.conf
|
# 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
|
# 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
|
# Set kernel.panic to 3 in /tmp/test_sysctl.conf
|
||||||
- sysctl: name=kernel.panic value=3 sysctl_file=/tmp/test_sysctl.conf reload=no
|
- sysctl: name=kernel.panic value=3 sysctl_file=/tmp/test_sysctl.conf reload=no
|
||||||
|
|
Loading…
Reference in a new issue