fix: win主机硬件信息内存单位与其他主机一致;cpu信息字段与其他主机一致

pull/13662/head
mmagi 2024-07-09 14:22:22 +08:00 committed by Bryan
parent bb6d60b46d
commit c42913c15e
1 changed files with 3 additions and 1 deletions

View File

@ -11,8 +11,10 @@
vendor: "{{ ansible_system_vendor }}"
model: "{{ ansible_product_name }}"
sn: "{{ ansible_product_serial }}"
cpu_count: "{{ ansible_processor_count }}"
cpu_cores: "{{ ansible_processor_cores }}"
cpu_vcpus: "{{ ansible_processor_vcpus }}"
memory: "{{ ansible_memtotal_mb }}"
memory: "{{ (ansible_memtotal_mb / 1024) | round(2) }}"
- debug:
var: info