add sysctl configuration (swappiness)
This commit is contained in:
@@ -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"
|
||||||
@@ -18,4 +18,7 @@
|
|||||||
tags: ssh
|
tags: ssh
|
||||||
|
|
||||||
- import_tasks: setup-bashrc.yml
|
- import_tasks: setup-bashrc.yml
|
||||||
tags: bashrc
|
tags: bashrc
|
||||||
|
|
||||||
|
- import_tasks: configure-sysctl.yml
|
||||||
|
tags: sysctl
|
||||||
Reference in New Issue
Block a user