Errore di sintassi con placeholders.

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

View File

@ -1,11 +1,11 @@
---
- set_fact: hwpoints=1
when: {{ ansible_memtotal_mb | int }} <= 2048 and {{ ansible_processor_vcpus | int }} <= 2
when: "{{ ansible_memtotal_mb | int }}" <= 2048 and "{{ ansible_processor_vcpus | int }}" <= 2
- set_fact: hwpoints=2
when: {{ ansible_memtotal_mb | int }} <= 4096 and {{ ansible_processor_vcpus | int }}<= 2
when: "{{ ansible_memtotal_mb | int }}" <= 4096 and "{{ ansible_processor_vcpus | int }}"<= 2
- set_fact: hwpoints=3
when: {{ ansible_memtotal_mb | int }} > 4096 and {{ ansible_processor_vcpus | int }} >= 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 | int }} >= 2 }
- { role: chromium, when: {{ hwpoints | int }} >= 2 }
- { role: googlechrome, when: "{{ hwpoints | int }}" >= 2 }
- { role: chromium, when: "{{ hwpoints | int }}" >= 2 }
- firefox
- libreoffice
- { 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 }
- { 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 | int }} >= 2 }
- { role: minetest, when: {{ hwpoints | int }} >= 2 }
- { role: zoom, when: {{ hwpoints | int }} > 2 }
- { role: msteams, when: {{ hwpoints | int }} > 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 }