Sistemato il check hw, ora solo su memoria.

This commit is contained in:
Emiliano Vavassori 2020-05-23 18:05:06 +02:00
parent 37941a6eb3
commit 5096b353f1
1 changed files with 3 additions and 3 deletions

View File

@ -1,15 +1,15 @@
--- ---
- set_fact: - set_fact:
hwpoints: 1 hwpoints: 1
when: ansible_memtotal_mb|int <= 2048 and ansible_processor_vcpus|int <= 2 when: ansible_memtotal_mb|int <= 2048
- set_fact: - set_fact:
hwpoints: 2 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: - set_fact:
hwpoints: 3 hwpoints: 3
when: ansible_memtotal_mb|int > 4096 and ansible_processor_vcpus|int >= 4 when: ansible_memtotal_mb|int >= 4096
- set_fact: - set_fact:
pkgarch: amd64 pkgarch: amd64