mirror of https://github.com/ceph/ceph-ansible.git
ceph-common: disable_transparent_hugepage now persist
parent
e2c8f1a404
commit
334d4cb885
|
@ -4,11 +4,25 @@
|
|||
changed_when: false
|
||||
failed_when: false
|
||||
|
||||
- name: create tmpfiles.d directory
|
||||
file:
|
||||
path: "/etc/tmpfiles.d"
|
||||
state: "directory"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0755"
|
||||
register: "tmpfiles_d"
|
||||
when: disable_transparent_hugepage
|
||||
|
||||
- name: disable transparent hugepage
|
||||
shell: |
|
||||
echo never > /sys/kernel/mm/transparent_hugepage/enabled
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
template:
|
||||
src: "tmpfiles_hugepage.j2"
|
||||
dest: "/etc/tmpfiles.d/ceph_transparent_hugepage.conf"
|
||||
group: "root"
|
||||
owner: "root"
|
||||
mode: "0644"
|
||||
force: "yes"
|
||||
validate: "systemd-tmpfiles --create %s"
|
||||
when: disable_transparent_hugepage
|
||||
|
||||
- name: get default vm.min_free_kbytes
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{{ '# ' + ansible_managed }}
|
||||
|
||||
{{ 'w /sys/kernel/mm/transparent_hugepage/enabled - - - - never' }}
|
Loading…
Reference in New Issue