add sysctl configuration (swappiness)

This commit is contained in:
DerLinkman
2026-05-26 21:46:14 +02:00
parent ab24414656
commit 12ab5a96a2
2 changed files with 13 additions and 1 deletions
@@ -0,0 +1,9 @@
---
- name: Configure swappiness to reduce swap usage
become: yes
ansible.posix.sysctl:
name: vm.swappiness
value: 10
state: present
reload: yes
when: ansible_facts['virtualization_type'] != "lxc"
+4 -1
View File
@@ -18,4 +18,7 @@
tags: ssh
- import_tasks: setup-bashrc.yml
tags: bashrc
tags: bashrc
- import_tasks: configure-sysctl.yml
tags: sysctl