copr-backend: disable the swap through /etc/fstab

This commit is contained in:
clime 2019-01-09 11:21:24 +01:00
parent 4be5ff27de
commit 05f64aaa80

View file

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