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:
parent
1300e7558b
commit
09cc40e670
1 changed files with 9 additions and 9 deletions
|
@ -316,15 +316,15 @@
|
||||||
fstype: swap
|
fstype: swap
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: detect if swap is enabled
|
# - name: detect if swap is enabled
|
||||||
shell: test -z "$(swapon -s)"
|
# shell: test -z "$(swapon -s)"
|
||||||
register: swap_enabled
|
# register: swap_enabled
|
||||||
changed_when: false
|
# changed_when: false
|
||||||
failed_when: false
|
# failed_when: false
|
||||||
|
#
|
||||||
- name: disable swap so that OOM killer can do his job
|
# - name: disable swap so that OOM killer can do his job
|
||||||
command: swapoff -a
|
# command: swapoff -a
|
||||||
when: swap_enabled.rc != 0
|
# when: swap_enabled.rc != 0
|
||||||
|
|
||||||
- name: setup AWS access
|
- name: setup AWS access
|
||||||
import_tasks: "aws.yml"
|
import_tasks: "aws.yml"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue