Ansible Role: Sysctl
Manage sysctl
settings.
Requirements
None
Role Variables
For a complete list of variables, see default/main.yml
.
sysctl_settings
: [default:[]
]: List ofsysctl
settingssysctl_settings.{n}.name
: [required]: Name of the settingsysctl_settings.{n}.value
: [required]: Value of the settingsysctl_settings.{n}.state
: [default:present
]: Whether to ensure the setting is present or absent
Dependencies
None
Example Playbook
---
- hosts: all
roles:
- sysctl
vars:
sysctl_settings:
- name: net.ipv4.tcp_fin_timeout
value: 10
License
MIT / BSD
Author Information
This role was created in 2016 by ALG, based on a fork of ansible-sysctl.