set swappiness to 10 for copr machines

This commit is contained in:
Miroslav Suchý
2026-02-04 20:45:38 +01:00
parent 1d6aa6f15a
commit 6092f3bdb2

View File

@@ -38,6 +38,14 @@
masked: yes
when: ansible_distribution == 'Fedora'
# do not swap unless it is really needed
- name: Set vm.swappiness to 10
ansible.posix.sysctl:
name: vm.swappiness
value: '10'
state: present
reload: yes
- name: Configure crond
ansible.builtin.copy: src=sysconfig.crond dest=/etc/sysconfig/crond
notify: Restart crond