Controllo hw e installo in dipendenza. Installo neofetch.

This commit is contained in:
Emiliano Vavassori 2020-04-29 23:09:17 +02:00
parent 24e56885af
commit 2f9e80c825
3 changed files with 24 additions and 11 deletions

View 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