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
This commit is contained in:
Pavel Raiskup 2019-12-15 21:54:49 +01:00 committed by Pierre-Yves Chibon
parent 1300e7558b
commit 09cc40e670

View file

@ -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"