copr-backend: disable swap

This commit is contained in:
clime 2018-12-27 15:28:07 +01:00
parent 056b1d909d
commit ed7d2fd8cf

View file

@ -223,3 +223,9 @@
- name: install our custom selinux module - name: install our custom selinux module
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 so that OOM killer can do his job
command: "{{ item }}"
with_items:
- swapoff -a
- systemctl mask swap.target