common: fix "disable transparent hugepage"

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 <seb@redhat.com>
pull/1322/head
Sébastien Han 2017-02-20 17:07:53 -05:00
parent adb85530b7
commit 7c79e09424
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@
failed_when: false failed_when: false
- name: disable transparent hugepage - 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 changed_when: false
failed_when: false failed_when: false
when: disable_transparent_hugepage when: disable_transparent_hugepage