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