6b11677987
The default facts gathering is set to false. Signed-off-by: Jiri Podivin <jpodivin@redhat.com> Change-Id: I2ac937df59f91b566029b0260e804d2972362f97
15 lines
362 B
YAML
15 lines
362 B
YAML
---
|
|
- name: Gather facts
|
|
setup:
|
|
gather_subset:
|
|
- processor_count
|
|
- '!all'
|
|
- '!min'
|
|
|
|
- name: Verify the number of CPU cores
|
|
fail:
|
|
msg: >-
|
|
There are {{ ansible_processor_vcpus }} cores in the system,
|
|
but there should be at least {{ minimal_cpu_count }}
|
|
failed_when: "ansible_processor_vcpus|int < minimal_cpu_count|int"
|