Update sysctl.py (#57984)
##### SUMMARY Quote values to mitigate this ansible warning: +label: docsite_pr
This commit is contained in:
parent
67e02b5eee
commit
bdb089b910
1 changed files with 4 additions and 4 deletions
|
@ -65,7 +65,7 @@ EXAMPLES = '''
|
||||||
# Set vm.swappiness to 5 in /etc/sysctl.conf
|
# Set vm.swappiness to 5 in /etc/sysctl.conf
|
||||||
- sysctl:
|
- sysctl:
|
||||||
name: vm.swappiness
|
name: vm.swappiness
|
||||||
value: 5
|
value: '5'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
# Remove kernel.panic entry from /etc/sysctl.conf
|
# Remove kernel.panic entry from /etc/sysctl.conf
|
||||||
|
@ -77,20 +77,20 @@ EXAMPLES = '''
|
||||||
# Set kernel.panic to 3 in /tmp/test_sysctl.conf
|
# Set kernel.panic to 3 in /tmp/test_sysctl.conf
|
||||||
- sysctl:
|
- sysctl:
|
||||||
name: kernel.panic
|
name: kernel.panic
|
||||||
value: 3
|
value: '3'
|
||||||
sysctl_file: /tmp/test_sysctl.conf
|
sysctl_file: /tmp/test_sysctl.conf
|
||||||
reload: no
|
reload: no
|
||||||
|
|
||||||
# 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
|
||||||
- sysctl:
|
- sysctl:
|
||||||
name: net.ipv4.ip_forward
|
name: net.ipv4.ip_forward
|
||||||
value: 1
|
value: '1'
|
||||||
sysctl_set: yes
|
sysctl_set: yes
|
||||||
|
|
||||||
# Set ip forwarding on in /proc and in the sysctl file and reload if necessary
|
# Set ip forwarding on in /proc and in the sysctl file and reload if necessary
|
||||||
- sysctl:
|
- sysctl:
|
||||||
name: net.ipv4.ip_forward
|
name: net.ipv4.ip_forward
|
||||||
value: 1
|
value: '1'
|
||||||
sysctl_set: yes
|
sysctl_set: yes
|
||||||
state: present
|
state: present
|
||||||
reload: yes
|
reload: yes
|
||||||
|
|
Loading…
Add table
Reference in a new issue