From c42913c15e0b7fc705f79014016eb1a07ccd2c68 Mon Sep 17 00:00:00 2001 From: mmagi Date: Tue, 9 Jul 2024 14:22:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20win=E4=B8=BB=E6=9C=BA=E7=A1=AC=E4=BB=B6?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=86=85=E5=AD=98=E5=8D=95=E4=BD=8D=E4=B8=8E?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E4=B8=BB=E6=9C=BA=E4=B8=80=E8=87=B4=EF=BC=9B?= =?UTF-8?q?cpu=E4=BF=A1=E6=81=AF=E5=AD=97=E6=AE=B5=E4=B8=8E=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E4=B8=BB=E6=9C=BA=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/automations/gather_facts/host/windows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/assets/automations/gather_facts/host/windows/main.yml b/apps/assets/automations/gather_facts/host/windows/main.yml index 377ffd10a..57e18d25f 100644 --- a/apps/assets/automations/gather_facts/host/windows/main.yml +++ b/apps/assets/automations/gather_facts/host/windows/main.yml @@ -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