Test Repo für Ansible Semaphore
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
375 B

---
- 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