Correzione interi per controlli.
This commit is contained in:
parent
e3d28eb77a
commit
037f1e675f
@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
- set_fact: hwpoints=1
|
- 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
|
- 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
|
- 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:
|
- setup:
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- checkhw
|
- checkhw
|
||||||
- neofetch
|
- neofetch
|
||||||
- { role: googlechrome, when: hwpoints >= 2 }
|
- { role: googlechrome, when: {{ hwpoints | int }} >= 2 }
|
||||||
- { role: chromium, when: hwpoints >= 2 }
|
- { role: chromium, when: {{ hwpoints | int }} >= 2 }
|
||||||
- firefox
|
- firefox
|
||||||
- libreoffice
|
- libreoffice
|
||||||
- { role: scribus, when: hwpoints >= 2 }
|
- { role: scribus, when: {{ hwpoints |int }} >= 2 }
|
||||||
- { role: calibre, when: hwpoints >= 2 }
|
- { role: calibre, when: {{ hwpoints | int }} >= 2 }
|
||||||
- { role: gimp, when: hwpoints >= 2 }
|
- { role: gimp, when: {{ hwpoints | int }} >= 2 }
|
||||||
- { role: inkscape, when: hwpoints >= 2 }
|
- { role: inkscape, when: {{ hwpoints | int }} >= 2 }
|
||||||
- { role: openshot, when: hwpoints >= 3 }
|
- { role: openshot, when: {{ hwpoints | int }} >= 3 }
|
||||||
- vlc
|
- vlc
|
||||||
- { role: geogebra, when: hwpoints >= 2 }
|
- { role: geogebra, when: {{ hwpoints | int }} >= 2 }
|
||||||
- { role: minetest, when: hwpoints >= 2 }
|
- { role: minetest, when: {{ hwpoints | int }} >= 2 }
|
||||||
- { role: zoom, when: hwpoints > 2 }
|
- { role: zoom, when: {{ hwpoints | int }} > 2 }
|
||||||
- { role: msteams, when: hwpoints > 2 }
|
- { role: msteams, when: {{ hwpoints | int }} > 2 }
|
||||||
|
Loading…
Reference in New Issue
Block a user