From 05f64aaa8056ced4033116317f95de84c7f1b93d Mon Sep 17 00:00:00 2001 From: clime Date: Wed, 9 Jan 2019 11:21:24 +0100 Subject: [PATCH] copr-backend: disable the swap through /etc/fstab --- roles/copr/backend/tasks/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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