[base] init; set swapiness to 10
This commit is contained in:
parent
3df3f0f172
commit
49b3fb4ea3
|
@ -4,6 +4,7 @@
|
|||
become: yes
|
||||
any_errors_fatal: yes
|
||||
roles:
|
||||
- role: base
|
||||
- role: packages
|
||||
tags:
|
||||
- packages
|
||||
|
|
5
roles/base/tasks/kernel.yml
Normal file
5
roles/base/tasks/kernel.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: set swapiness
|
||||
lineinfile:
|
||||
path: /etc/sysctl.conf
|
||||
line: vm.swappiness = 10
|
7
roles/base/tasks/main.yml
Normal file
7
roles/base/tasks/main.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- block:
|
||||
- import_tasks: kernel.yml
|
||||
tags:
|
||||
- base:kernel
|
||||
tags:
|
||||
- base
|
Reference in a new issue