vmware / ansible-vsphere-gos-validation

Guest OS validation test set for vSphere using Ansible
Other
39 stars 29 forks source link

[Windows] fix issue in win_get_driver_installer.yml #586

Closed Tomorrow9 closed 4 months ago

Tomorrow9 commented 4 months ago

"Get-ItemPropertyValue" was changed to "reg query" in former merge request, so that changing the result handling for getting the list of driver installers.

Tomorrow9 commented 4 months ago
TASK [Display the PowerShell command result] ***********************************
task path: /home/worker/workspace/Ansible_Windows_Server_LTSC_70U3_LSILOGICSAS_E1000E_EFI_SecureBoot/ansible-vsphere-gos-validation/windows/utils/win_execute_cmd.yml:53
ok: [localhost] => {
    "win_powershell_cmd_output": {
        "changed": true,
        "cmd": "if ($(Test-Path -Path \"HKLM:\\System\\CurrentControlSet\\Services\\pvscsi\")) {\n  reg query \"HKLM\\System\\CurrentControlSet\\Services\\pvscsi\" /v 'vwdk.installers' | findstr 'REG'\n}",
        "delta": "0:00:00.746758",
        "end": "2024-05-29 07:52:01.424962",
        "failed": false,
        "rc": 0,
        "start": "2024-05-29 07:52:00.678203",
        "stderr": "",
        "stderr_lines": [],
        "stdout": "    vwdk.installers    REG_MULTI_SZ    Windows\\0MSI\r\n",
        "stdout_lines": [
            "    vwdk.installers    REG_MULTI_SZ    Windows\\0MSI"
        ]
    }
}

TASK [Set fact of the driver installer info list] ******************************
task path: /home/worker/workspace/Ansible_Windows_Server_LTSC_70U3_LSILOGICSAS_E1000E_EFI_SecureBoot/ansible-vsphere-gos-validation/windows/utils/win_get_driver_installer.yml:36
ok: [localhost] => {
    "ansible_facts": {
        "win_driver_installer_list": [
            "Windows",
            "MSI"
        ]
    },
    "changed": false
}
...
TASK [Display the PowerShell command result] ***********************************
task path: /home/worker/workspace/Ansible_Windows_Server_LTSC_70U3_LSILOGICSAS_E1000E_EFI_SecureBoot/ansible-vsphere-gos-validation/windows/utils/win_execute_cmd.yml:53
ok: [localhost] => {
    "win_powershell_cmd_output": {
        "changed": true,
        "cmd": "if ($(Test-Path -Path \"HKLM:\\System\\CurrentControlSet\\Services\\vmxnet3ndis6\")) {\n  reg query \"HKLM\\System\\CurrentControlSet\\Services\\vmxnet3ndis6\" /v 'vwdk.installers' | findstr 'REG'\n}",
        "delta": "0:00:00.553622",
        "end": "2024-05-29 07:52:08.111434",
        "failed": false,
        "rc": 0,
        "start": "2024-05-29 07:52:07.557811",
        "stderr": "",
        "stderr_lines": [],
        "stdout": "    vwdk.installers    REG_MULTI_SZ    MSI\r\n",
        "stdout_lines": [
            "    vwdk.installers    REG_MULTI_SZ    MSI"
        ]
    }
}

TASK [Set fact of the driver installer info list] ******************************
task path: /home/worker/workspace/Ansible_Windows_Server_LTSC_70U3_LSILOGICSAS_E1000E_EFI_SecureBoot/ansible-vsphere-gos-validation/windows/utils/win_get_driver_installer.yml:36
ok: [localhost] => {
    "ansible_facts": {
        "win_driver_installer_list": [
            "MSI"
        ]
    },
    "changed": false
}