diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index a1a358b99e..b96983167a 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -224,8 +224,14 @@ command: semodule -i /usr/local/share/copr/copr_rules.pp when: selinux_module is changed +- name: disable swap mount in fstab + mount: + path: none + src: /dev/vdb + fstype: swap + state: absent + - name: disable swap so that OOM killer can do his job command: "{{ item }}" with_items: - swapoff -a - - systemctl mask swap.target