homeserver/roles/mgrote_disable_oom_killer/tasks/main.yml

9 lines
206 B
YAML
Raw Permalink Normal View History

---
- name: disable oom-killer in sysctl.conf (works after a reboot)
become: true
ansible.builtin.blockinfile:
path: /etc/sysctl.conf
block: |
vm.oom-kill = 0
notify: disable oom-killer