2019-05-27 19:00:59 +00:00
|
|
|
---
|
|
|
|
- name: Create disable transparent hugepages systemd service file
|
2018-12-18 09:50:38 +00:00
|
|
|
copy:
|
2019-06-03 16:57:48 +00:00
|
|
|
src: "{{ item }}"
|
2019-05-27 19:00:59 +00:00
|
|
|
dest: /etc/systemd/system/disable-transparent-hugepages.service
|
2018-12-18 09:50:38 +00:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2019-06-03 16:57:48 +00:00
|
|
|
with_first_found:
|
|
|
|
- "disable-transparent-hugepages.{{ ansible_distribution | lower }}.service"
|
|
|
|
- "disable-transparent-hugepages.{{ ansible_os_family | lower }}.service"
|
2018-12-18 09:50:38 +00:00
|
|
|
|
2019-05-27 19:00:59 +00:00
|
|
|
- name: Enable disable-transparent-hugepages.service
|
2018-12-18 09:50:38 +00:00
|
|
|
systemd:
|
|
|
|
name: disable-transparent-hugepages
|
2019-05-27 19:00:59 +00:00
|
|
|
daemon-reload: true
|
|
|
|
enabled: true
|
2018-12-18 09:50:38 +00:00
|
|
|
state: started
|