Aggiunte alcune ottimizzazioni.

This commit is contained in:
Emiliano Vavassori 2020-05-22 19:21:38 +02:00
parent 6f9b0b89cb
commit bccefa5aca
4 changed files with 38 additions and 0 deletions

View File

@ -1,5 +1,8 @@
dependencies:
- checkhw
- zram-config
- prelink-preload
- swappiness
- neofetch
- anydesk
- googlechrome

View File

@ -0,0 +1,20 @@
---
# Preload
- apt:
name: preload
state: present
# Prelink
- apt:
name: prelink
state: present
- lineinfile:
path: /etc/default/prelink
regexp: "^PRELINKING=unknown"
line: "PRELINKING=yes"
- shell: /etc/cron.daily/prelink
become: yes
async: 3600
poll: 0

View File

@ -0,0 +1,8 @@
---
# Abbasso decisamente la swappiness
- lineinfile:
path: /etc/sysctl.conf
line: "vm.swappiness = 10"
insertbefore: EOF
state: present

View File

@ -0,0 +1,7 @@
---
# Configurazione del modulo zram
- apt:
name: zram-config
state: present
when: hwpoints|int < 3