Aggiunte alcune ottimizzazioni.
This commit is contained in:
parent
6f9b0b89cb
commit
bccefa5aca
|
@ -1,5 +1,8 @@
|
|||
dependencies:
|
||||
- checkhw
|
||||
- zram-config
|
||||
- prelink-preload
|
||||
- swappiness
|
||||
- neofetch
|
||||
- anydesk
|
||||
- googlechrome
|
||||
|
|
|
@ -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
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
# Abbasso decisamente la swappiness
|
||||
|
||||
- lineinfile:
|
||||
path: /etc/sysctl.conf
|
||||
line: "vm.swappiness = 10"
|
||||
insertbefore: EOF
|
||||
state: present
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
# Configurazione del modulo zram
|
||||
|
||||
- apt:
|
||||
name: zram-config
|
||||
state: present
|
||||
when: hwpoints|int < 3
|
Loading…
Reference in New Issue