help!!! JumpServer 社区版 v4.4.1 应用发布机初始化部署没问题,远程桌面、网站资产也能访问,就是收集资产信息
任务老是FAILED!,哪位大佬指点一下是哪里没有配置么
2024-12-13 14:56:59 >>> 任务准备阶段
2024-12-13 14:56:59 >>> 开始执行任务
2024-12-13 14:57:00
PLAY [all] *********************************************************************
2024-12-13 14:57:00
TASK [Gathering Facts] *********************************************************
2024-12-13 14:57:06 [WARNING]: Error when collecting bios facts: New-Object :
2024-12-13 14:57:06 使用“0”个参数调用“.ctor”时发生异常:“Failed to get SMBIOS buffer information (函数不正确。,
2024-12-13 14:57:06 Win32ErrorCode 1 - 0x00000001)” At line:2 char:21 + ... $bios = New-
2024-12-13 14:57:06 Object -TypeName Ansible.Windows.Setup.SMBIOSInfo +
2024-12-13 14:57:06 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo
2024-12-13 14:57:06 : InvalidOperation: (:) [New-Object], MethodInvocationException +
2024-12-13 14:57:06 FullyQualifiedErrorId :
2024-12-13 14:57:06 ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
2024-12-13 14:57:06 在 <ScriptBlock>、<无文件> 中: 第 2 行
2024-12-13 14:57:06 [WARNING]: Error when collecting platform facts: New-Object :
2024-12-13 14:57:06 使用“0”个参数调用“.ctor”时发生异常:“Failed to get SMBIOS buffer information (函数不正确。,
2024-12-13 14:57:06 Win32ErrorCode 1 - 0x00000001)” At line:2 char:21 + ... $bios = New-
2024-12-13 14:57:06 Object -TypeName Ansible.Windows.Setup.SMBIOSInfo +
2024-12-13 14:57:06 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo
2024-12-13 14:57:06 : InvalidOperation: (:) [New-Object], MethodInvocationException +
2024-12-13 14:57:06 FullyQualifiedErrorId :
2024-12-13 14:57:06 ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
2024-12-13 14:57:06 在 <ScriptBlock>、<无文件> 中: 第 2 行
2024-12-13 14:57:06 [WARNING]: Error when collecting processor facts: New-Object :
2024-12-13 14:57:06 使用“0”个参数调用“.ctor”时发生异常:“Failed to get SMBIOS buffer information (函数不正确。,
2024-12-13 14:57:06 Win32ErrorCode 1 - 0x00000001)” At line:2 char:21 + ... $bios = New-
2024-12-13 14:57:06 Object -TypeName Ansible.Windows.Setup.SMBIOSInfo +
2024-12-13 14:57:06 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo
2024-12-13 14:57:06 : InvalidOperation: (:) [New-Object], MethodInvocationException +
2024-12-13 14:57:06 FullyQualifiedErrorId :
2024-12-13 14:57:06 ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
2024-12-13 14:57:06 在 <ScriptBlock>、<无文件> 中: 第 2 行
2024-12-13 14:57:06 [WARNING]: Error when collecting processor facts: 无法对 Null 数组进行索引。 At line:22
2024-12-13 14:57:06 char:13 + $ansibleFacts.ansible_processor_cores =
2024-12-13 14:57:06 $bios.ProcessorIn ... +
2024-12-13 14:57:06 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo
2024-12-13 14:57:06 : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId :
2024-12-13 14:57:06 NullArray 在 <ScriptBlock>、<无文件> 中: 第 22 行
2024-12-13 14:57:06 [WARNING]: Error when collecting processor facts: 无法对 Null 数组进行索引。 At line:24
2024-12-13 14:57:06 char:13 + $ansibleFacts.ansible_processor_threads_per_core =
2024-12-13 14:57:06 $bios. ... +
2024-12-13 14:57:06 在 <ScriptBlock>、<无文件> 中: 第 2 行
2024-12-13 14:57:06 ok: [WinServer]
2024-12-13 14:57:06
TASK [Get info] ****************************************************************
2024-12-13 14:57:06 fatal: [WinServer]: FAILED! => {"msg": "The task includes an option with an undefined variable. Theerror was: 'ansible_processor_cores' is undefined. 'ansible_processor_cores' is undefined\n\nThe error appears to be in'/opt/jumpserver/data/share/ansible/automations/gather_facts/Update_assets_hardware_info:_0e3e983b_80f003bf-9f53-4431-8f76-e502adfe4143/20241213_065659/project/main.yml': line 4, column 5, but may\nbe elsewhere in the file depending on theexact syntax problem.\n\nThe offending line appears to be:\n\n tasks:\n - name: Get info\n ^ here\n"}
2024-12-13 14:57:06
PLAY RECAP *********************************************************************
WinServer : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
2024-12-13 14:57:06 Task assets.tasks.gather_facts.gather_assets_facts_task[80f003bf-9f53-4431-8f76-e502adfe4143] succeeded in 6.932033509998291s: None