From 5c84cd304e541e2ca3bc16c9930290bd8f2e5404 Mon Sep 17 00:00:00 2001 From: Yanan Shen Date: Mon, 8 Apr 2024 14:01:56 +0800 Subject: [PATCH] fix vars name error Signed-off-by: Yanan Shen --- windows/windows_update_install/prepare_msu_file.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/windows_update_install/prepare_msu_file.yml b/windows/windows_update_install/prepare_msu_file.yml index 0a76abd69..13bc1b469 100644 --- a/windows/windows_update_install/prepare_msu_file.yml +++ b/windows/windows_update_install/prepare_msu_file.yml @@ -55,7 +55,7 @@ win_execute_cmd_no_log: "{{ hide_secrets | default(false) }}" win_powershell_cmd: >- {{ win_nfs_mount_cmd }}; - $file = Get-ChildItem -Path {{ msu_file_nfs_path }} | where Name -like '{{ msu_file_reg }}'; + $file = Get-ChildItem -Path {{ msu_file_nfs_path }} | where Name -like '{{ msu_file_name_reg }}'; if ($file) {Copy-Item -Path $file.FullName -Destination {{ msu_dest_dir }} -ErrorAction Stop;}; net use {{ drive_letter_new }}: /delete