RHEL/CentOS - Configure kernel parameters at runtime
None
Available variables are listed below, along with default values:
sysctl_conf: []
sysctl_d: []
Below is example syntax for each variable:
sysctl_conf:
- name: kernel.dmesg_restrict
state: present
value: '1'
- name: kernel.modules_disabled
state: present
value: '1'
sysctl_d:
- file: ansible
order: 99
settings:
- name: kernel.dmesg_restrict
state: present
value: '1'
- name: kernel.modules_disabled
state: present
value: '1'
None
- hosts: servers
roles:
- role: linuxhq.sysctl
sysctl_d:
- file: ansible
order: 99
settings:
- name: kernel.dmesg_restrict
value: '1'
- name: kernel.modules_disabled
value: '1'
BSD
This role was created by Taylor Kimball.