Correzione interi per controlli.

This commit is contained in:
Emiliano Vavassori 2020-04-29 23:27:39 +02:00
parent e3d28eb77a
commit 037f1e675f
2 changed files with 14 additions and 14 deletions

View File

@ -1,11 +1,11 @@
---
- set_fact: hwpoints=1
when: ansible_memtotal_mb <= 2048 and ansible_processor_vcpus <= 2
when: {{ ansible_memtotal_mb | int }} <= 2048 and {{ ansible_processor_vcpus | int }} <= 2
- set_fact: hwpoints=2
when: ansible_memtotal_mb <= 4096 and ansible_processor_vcpus <= 2
when: {{ ansible_memtotal_mb | int }} <= 4096 and {{ ansible_processor_vcpus | int }}<= 2
- set_fact: hwpoints=3
when: ansible_memtotal_mb > 4096 and ansible_processor_vcpus >= 4
when: {{ ansible_memtotal_mb | int }} > 4096 and {{ ansible_processor_vcpus | int }} >= 4
- setup:

View File

@ -1,17 +1,17 @@
dependencies:
- checkhw
- neofetch
- { role: googlechrome, when: hwpoints >= 2 }
- { role: chromium, when: hwpoints >= 2 }
- { role: googlechrome, when: {{ hwpoints | int }} >= 2 }
- { role: chromium, when: {{ hwpoints | int }} >= 2 }
- firefox
- libreoffice
- { role: scribus, when: hwpoints >= 2 }
- { role: calibre, when: hwpoints >= 2 }
- { role: gimp, when: hwpoints >= 2 }
- { role: inkscape, when: hwpoints >= 2 }
- { role: openshot, when: hwpoints >= 3 }
- { role: scribus, when: {{ hwpoints |int }} >= 2 }
- { role: calibre, when: {{ hwpoints | int }} >= 2 }
- { role: gimp, when: {{ hwpoints | int }} >= 2 }
- { role: inkscape, when: {{ hwpoints | int }} >= 2 }
- { role: openshot, when: {{ hwpoints | int }} >= 3 }
- vlc
- { role: geogebra, when: hwpoints >= 2 }
- { role: minetest, when: hwpoints >= 2 }
- { role: zoom, when: hwpoints > 2 }
- { role: msteams, when: hwpoints > 2 }
- { role: geogebra, when: {{ hwpoints | int }} >= 2 }
- { role: minetest, when: {{ hwpoints | int }} >= 2 }
- { role: zoom, when: {{ hwpoints | int }} > 2 }
- { role: msteams, when: {{ hwpoints | int }} > 2 }