Controllo hw e installo in dipendenza. Installo neofetch.
This commit is contained in:
parent
24e56885af
commit
2f9e80c825
9
roles/checkhw/tasks/main.yml
Normal file
9
roles/checkhw/tasks/main.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
- set_fact: hwpoints=1
|
||||||
|
when: ansible_memtotal_mb <= 2048 and ansible_processor_vcpus <= 2
|
||||||
|
|
||||||
|
- set_fact: hwpoints=2
|
||||||
|
when: ansible_memtotal_mb <= 4096 and ansible_processor_vcpus <= 2
|
||||||
|
|
||||||
|
- set_fact: hwpoints=3
|
||||||
|
when: ansible_memtotal_mb > 4096 and ansible_processor_vcpus >= 4
|
@ -1,15 +1,17 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- googlechrome
|
- checkhw
|
||||||
- chromium
|
- neofetch
|
||||||
|
- { role: googlechrome, when: hwpoints >= 2 }
|
||||||
|
- { role: chromium, when: hwpoints >= 2 }
|
||||||
- firefox
|
- firefox
|
||||||
- libreoffice
|
- libreoffice
|
||||||
- scribus
|
- { role: scribus, when: hwpoints >= 2 }
|
||||||
- calibre
|
- { role: calibre, when: hwpoints >= 2 }
|
||||||
- gimp
|
- { role: gimp, when: hwpoints >= 2 }
|
||||||
- inkscape
|
- { role: inkscape, when: hwpoints >= 2 }
|
||||||
- openshot
|
- { role: openshot, when: hwpoints >= 3 }
|
||||||
- vlc
|
- vlc
|
||||||
- geogebra
|
- { role: geogebra, when: hwpoints >= 2 }
|
||||||
- minetest
|
- { role: minetest, when: hwpoints >= 2 }
|
||||||
- zoom
|
- { role: zoom, when: hwpoints > 2 }
|
||||||
- msteams
|
- { role: msteams, when: hwpoints > 2 }
|
||||||
|
2
roles/neofetch/tasks/main.yml
Normal file
2
roles/neofetch/tasks/main.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
- apt: name=neofetch state=present
|
Loading…
Reference in New Issue
Block a user