2020-04-29 23:09:17 +02:00
|
|
|
---
|
|
|
|
- set_fact: hwpoints=1
|
2020-04-29 23:27:39 +02:00
|
|
|
when: {{ ansible_memtotal_mb | int }} <= 2048 and {{ ansible_processor_vcpus | int }} <= 2
|
2020-04-29 23:09:17 +02:00
|
|
|
|
|
|
|
- set_fact: hwpoints=2
|
2020-04-29 23:27:39 +02:00
|
|
|
when: {{ ansible_memtotal_mb | int }} <= 4096 and {{ ansible_processor_vcpus | int }}<= 2
|
2020-04-29 23:09:17 +02:00
|
|
|
|
|
|
|
- set_fact: hwpoints=3
|
2020-04-29 23:27:39 +02:00
|
|
|
when: {{ ansible_memtotal_mb | int }} > 4096 and {{ ansible_processor_vcpus | int }} >= 4
|
2020-04-29 23:11:13 +02:00
|
|
|
|
|
|
|
- setup:
|