From 5096b353f1d681c720219bfb76b80672de9d2f7e Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 23 May 2020 18:05:06 +0200 Subject: [PATCH] Sistemato il check hw, ora solo su memoria. --- roles/checkhw/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/checkhw/tasks/main.yml b/roles/checkhw/tasks/main.yml index f06e88e..5b99fb7 100644 --- a/roles/checkhw/tasks/main.yml +++ b/roles/checkhw/tasks/main.yml @@ -1,15 +1,15 @@ --- - set_fact: hwpoints: 1 - when: ansible_memtotal_mb|int <= 2048 and ansible_processor_vcpus|int <= 2 + when: ansible_memtotal_mb|int <= 2048 - set_fact: hwpoints: 2 - when: ansible_memtotal_mb|int <= 4096 and ansible_processor_vcpus|int <= 2 + when: ansible_memtotal_mb|int > 2048 and ansible_memtotal_mb|int < 4096 - set_fact: hwpoints: 3 - when: ansible_memtotal_mb|int > 4096 and ansible_processor_vcpus|int >= 4 + when: ansible_memtotal_mb|int >= 4096 - set_fact: pkgarch: amd64