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

27 lines
625 B
YAML

---
- name: disable OSD directory parsing by updatedb
command: updatedb -e /var/lib/ceph
changed_when: false
ignore_errors: true
- name: disable transparent hugepage
command: "echo never > /sys/kernel/mm/transparent_hugepage/enabled"
changed_when: false
ignore_errors: true
when: disable_transparent_hugepage
- name: disable swap
command: swapoff -a
changed_when: false
ignore_errors: true
when: disable_swap
- 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