sysctl

Collection: posix

Full Name: parallax.posix.sysctl

Aliases: ansible.posix.sysctl, sysctl

Synopsis

Manage sysctl

Parameters

NameTypeRequiredDefaultDescription
namestringyesThe dot-separated path to the sysctl parameter (e.g. net.ipv4.ip_forward)
valuestringDesired value of the sysctl parameter
statestringpresentWhether the entry should be present or absent in the sysctl file Choices: present, absent
reloadbooltrueWhether to reload sysctl settings from the sysctl file after changing
sysctl_filestring/etc/sysctl.confPath to the sysctl configuration file
sysctl_setboolfalseVerify token value with the sysctl command and set with -w if necessary
ignoreerrorsboolfalseIgnore errors about unknown keys

Example

- name: Example sysctl task
  sysctl:
    name: <your_name>