From 7c79e09424c6d0776a7957ddf6057eea7a46910b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 20 Feb 2017 17:07:53 -0500 Subject: [PATCH] common: fix "disable transparent hugepage" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To configure kernel the task is using "command" module which is not respect operator ">". So this task just print to "stdout": "never > /sys/kernel/mm/transparent_hugepage/enabled" fix: #1319 Signed-off-by: Sébastien Han --- roles/ceph-common/tasks/misc/system_tuning.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/ceph-common/tasks/misc/system_tuning.yml b/roles/ceph-common/tasks/misc/system_tuning.yml index 8da585dae..cef219ec0 100644 --- a/roles/ceph-common/tasks/misc/system_tuning.yml +++ b/roles/ceph-common/tasks/misc/system_tuning.yml @@ -5,7 +5,8 @@ failed_when: false - name: disable transparent hugepage - command: "echo never > /sys/kernel/mm/transparent_hugepage/enabled" + shell: | + echo never > /sys/kernel/mm/transparent_hugepage/enabled changed_when: false failed_when: false when: disable_transparent_hugepage