Browse Source

update

master
Dirk Wirts 2 years ago
parent
commit
4a8c5a3137
  1. 18
      ansible-swappiness.yml

18
ansible-swappiness.yml

@ -0,0 +1,18 @@
---
- name: Set vm.swappiness to 1
hosts: all
become: true
tasks:
- name: Make vm.swappiness setting persistent
lineinfile:
path: /etc/sysctl.d/99-swappines.conf
regexp: '^vm.swappiness='
line: 'vm.swappiness=1'
create: yes
notify:
- Reload sysctl
handlers:
- name: Reload sysctl
command: sysctl -p
Loading…
Cancel
Save