mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-01-26 21:09:49 +00:00
17 lines
549 B
YAML
17 lines
549 B
YAML
---
|
|
- name: Create disable transparent hugepages systemd service file
|
|
template:
|
|
src: "{{ item }}"
|
|
dest: /etc/systemd/system/disable-transparent-hugepages.service
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
with_first_found:
|
|
- "disable-transparent-hugepages.{{ ansible_distribution | lower }}.service.j2"
|
|
- "disable-transparent-hugepages.{{ ansible_os_family | lower }}.service.j2"
|
|
notify: "run disable-transparent-hugepages"
|
|
when:
|
|
- ansible_service_mgr == "systemd"
|
|
- mongodb_disable_transparent_hugepages | bool
|
|
|