Use sysctl module to set swappiness

master
Simon Bruder 2019-08-02 00:16:52 +00:00
parent 78819f2c78
commit 78691eceee
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
---
- name: set swapiness
lineinfile:
path: /etc/sysctl.conf
line: vm.swappiness = 10
sysctl:
name: vm.swappiness
value: 10
state: present