From 09cc40e67003665f622a5e8e615a016517fcd116 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Sun, 15 Dec 2019 21:54:49 +0100 Subject: [PATCH] copr: backend: experiment with swap=ON and swappiness=5 This is experiment, I configured $Subject manually - and I only want to not re-set the swap config by ansible playbook. If everything works well, we need to enable swap properly. https://pagure.io/copr/copr/issue/1166 --- roles/copr/backend/tasks/main.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index 2cdaff4d15..ef5829f931 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -316,15 +316,15 @@ fstype: swap state: absent -- name: detect if swap is enabled - shell: test -z "$(swapon -s)" - register: swap_enabled - changed_when: false - failed_when: false - -- name: disable swap so that OOM killer can do his job - command: swapoff -a - when: swap_enabled.rc != 0 +# - name: detect if swap is enabled +# shell: test -z "$(swapon -s)" +# register: swap_enabled +# changed_when: false +# failed_when: false +# +# - name: disable swap so that OOM killer can do his job +# command: swapoff -a +# when: swap_enabled.rc != 0 - name: setup AWS access import_tasks: "aws.yml"