---
- name: Disable OSD directory parsing by updatedb
  command: updatedb -e /var/lib/ceph
  ignore_errors: true

- name: Disable transparent hugepage
  command: "echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled"
  ignore_errors: true
  when: disable_transparent_hugepage

- name: Apply OS tuning
  sysctl: >
    name={{ item.name }}
    value={{ item.value }}
    state=present
    sysctl_file=/etc/sysctl.conf
  with_items: os_tuning_params

---
- name: Disable OSD directory parsing by updatedb
  command: updatedb -e /var/lib/ceph
  ignore_errors: true

- name: Disable transparent hugepage
  command: "echo never > /sys/kernel/mm/transparent_hugepage/enabled"
  ignore_errors: true
  when: disable_transparent_hugepage

- name: Apply OS tuning
  sysctl: >
    name={{ item.name }}
    value={{ item.value }}
    state=present
    sysctl_file=/etc/sysctl.conf
  with_items: os_tuning_params

Fix transparent huge page sys path
Fix transparent huge page sys path

The old path was meant for old kernels...

Signed-off-by: Sébastien Han <c944cdd58d18a32bd34d661eafe66112d96c6cc1@enovance.com>
