This ansible role configure sysctl.
Platform | Versions |
---|---|
Debian | all |
EL | all |
Fedora | all |
Ubuntu | all |
Ansible >= 2.13
None.
ansible-galaxy install dginhoux.sysctl
git clone https://github.com/dginhoux/ansible_role.sysctl dginhoux.sysctl
- name: Playbook
hosts: all
tasks:
- name: Start role dginhoux.sysctl
ansible.builtin.include_role:
name: dginhoux.sysctl
Defaults variables defined in defaults/main.yml
sysctl_list:
- name: vm.swappiness
value: 60
state: present
sysctl_list_host: []
sysctl_list_group: []
NOTE : Theses 3 lists sysctl_list
, sysctl_list_group
and sysctl_list_host
are merged.
You can use the _host
and _group
lists to specify per host and/or per group content.
Those variables files are located in vars/*.yml
are used to handle OS differences.
One of theses is loaded dynamically during role runtime using the include_vars
module and set OS specifics variable's.
NOT USED BY THIS ROLE
Dany GINHOUX - https://github.com/dginhoux
MIT