ansible-role-mongodb/tasks/disable_transparent_hugepag...

19 lines
560 B
YAML
Raw Normal View History

---
- name: Create disable transparent hugepages systemd service file
copy:
2019-06-03 16:57:48 +00:00
src: "{{ item }}"
dest: /etc/systemd/system/disable-transparent-hugepages.service
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"
- name: Enable disable-transparent-hugepages.service
systemd:
name: disable-transparent-hugepages
daemon-reload: true
enabled: true
state: started