ceph-ansible/roles/ceph-common/tasks/os_tuning.yml

27 lines
625 B
YAML
Raw Normal View History

---
- name: Disable OSD directory parsing by updatedb
command: updatedb -e /var/lib/ceph
ignore_errors: true
changed_when: False
- name: Disable transparent hugepage
command: "echo never > /sys/kernel/mm/transparent_hugepage/enabled"
when: disable_transparent_hugepage
ignore_errors: true
changed_when: False
- name: Disable swap
command: swapoff -a
when: disable_swap
ignore_errors: true
changed_when: False
- name: Apply OS tuning
sysctl: >
name={{ item.name }}
value={{ item.value }}
state=present
sysctl_file=/etc/sysctl.conf
ignoreerrors=yes
with_items: os_tuning_params