2020-04-29 23:09:17 +02:00
|
|
|
---
|
|
|
|
- set_fact: hwpoints=1
|
2020-04-29 23:29:32 +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:29:32 +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:29:32 +02:00
|
|
|
when: "{{ ansible_memtotal_mb | int }}" > 4096 and "{{ ansible_processor_vcpus | int }}" >= 4
|
2020-04-29 23:11:13 +02:00
|
|
|
|
|
|
|
- setup:
|