ansible/roles/basic_common_settings/tasks/earlyoom.yml

18 lines
395 B
YAML
Raw Permalink Normal View History

2022-12-14 17:43:16 +01:00
---
- name: Install earlyoom if OS is based on Debian
ansible.builtin.package:
name: earlyoom
when: ansible_os_family == 'Debian'
- name: Create earlyoom config
ansible.builtin.template:
src: ../files/debian_earlyoom
dest: /etc/default/earlyoom
owner: root
group: root
mode: '0644'
force: true
when: ansible_os_family == 'Debian'
notify: restart-earlyoom