copr-backend: disable the swap through /etc/fstab
This commit is contained in:
parent
4be5ff27de
commit
05f64aaa80
1 changed files with 7 additions and 1 deletions
|
@ -224,8 +224,14 @@
|
||||||
command: semodule -i /usr/local/share/copr/copr_rules.pp
|
command: semodule -i /usr/local/share/copr/copr_rules.pp
|
||||||
when: selinux_module is changed
|
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
|
- name: disable swap so that OOM killer can do his job
|
||||||
command: "{{ item }}"
|
command: "{{ item }}"
|
||||||
with_items:
|
with_items:
|
||||||
- swapoff -a
|
- swapoff -a
|
||||||
- systemctl mask swap.target
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue