diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index 845b44dd20..a1a358b99e 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -223,3 +223,9 @@ - name: install our custom selinux module command: semodule -i /usr/local/share/copr/copr_rules.pp when: selinux_module is changed + +- name: disable swap so that OOM killer can do his job + command: "{{ item }}" + with_items: + - swapoff -a + - systemctl mask swap.target