Use sysctl module to set swappiness

This commit is contained in:
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

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