mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
set swappiness to 10 for copr machines
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user