.. _ansible.posix.sysctl_module:
********************
ansible.posix.sysctl
********************
**Manage entries in sysctl.conf.**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manipulates sysctl entries and optionally performs a ``/sbin/sysctl -p`` after changing them.
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
ignoreerrors
boolean
|
|
Use this option to ignore errors about unknown keys.
|
name
string
/ required
|
|
The dot-separated path (also known as key) specifying the sysctl variable.
aliases: key
|
reload
boolean
|
|
If yes , performs a /sbin/sysctl -p if the sysctl_file is updated. If no , does not reload sysctl even if the sysctl_file is updated.
|
state
string
|
Choices:
present ←
- absent
|
Whether the entry should be present or absent in the sysctl file.
|
sysctl_file
path
|
Default:
"/etc/sysctl.conf"
|
Specifies the absolute path to sysctl.conf , if not /etc/sysctl.conf .
|
sysctl_set
boolean
|
|
Verify token value with the sysctl command and set with -w if necessary
|
value
string
|
|
Desired value of the sysctl key.
aliases: val
|