2015-01-07 18:41:35 +08:00
|
|
|
---
|
|
|
|
- name: Disable OSD directory parsing by updatedb
|
|
|
|
command: updatedb -e /var/lib/ceph
|
|
|
|
ignore_errors: true
|
2015-04-09 00:46:54 +08:00
|
|
|
changed_when: False
|
2015-01-07 18:41:35 +08:00
|
|
|
|
2015-01-13 18:09:53 +08:00
|
|
|
- name: Disable transparent hugepage
|
2015-01-15 17:58:45 +08:00
|
|
|
command: "echo never > /sys/kernel/mm/transparent_hugepage/enabled"
|
2015-01-13 18:09:53 +08:00
|
|
|
when: disable_transparent_hugepage
|
2015-01-15 18:42:51 +08:00
|
|
|
ignore_errors: true
|
2015-04-09 00:46:54 +08:00
|
|
|
changed_when: False
|
2015-01-15 18:42:51 +08:00
|
|
|
|
|
|
|
- name: Disable swap
|
|
|
|
command: swapoff -a
|
|
|
|
when: disable_swap
|
|
|
|
ignore_errors: true
|
2015-04-09 00:46:54 +08:00
|
|
|
changed_when: False
|
2015-01-13 18:09:53 +08:00
|
|
|
|
2015-01-13 17:31:26 +08:00
|
|
|
- name: Apply OS tuning
|
2015-01-07 18:41:35 +08:00
|
|
|
sysctl: >
|
2015-01-13 17:31:26 +08:00
|
|
|
name={{ item.name }}
|
|
|
|
value={{ item.value }}
|
2015-01-07 18:41:35 +08:00
|
|
|
state=present
|
|
|
|
sysctl_file=/etc/sysctl.conf
|
2015-04-15 03:46:03 +08:00
|
|
|
ignoreerrors=yes
|
2015-01-13 17:31:26 +08:00
|
|
|
with_items: os_tuning_params
|