简体   繁体   中英

Ansible Windows win_unzip Method System.IO.Compression.ZipFile Exception calling ExtractToFile with 3 argument Access to the path is denied

Using :

  win_unzip:
        src: "D:\program64\my\app\binaries.zip"
        dest: "D:\program64\my\app\"
        delete_archive: yes

i get :

TASK [ Unzip zip file] ****************************
17:19:01            fatal: [myhost]: FAILED! => {"changed": true, "dest": "D:\program64\my\app\", "msg": 
"Error unzipping 'D:\program64\my\app\binaries.zip' to 'D:\program64\my\app\'!. Method: 
System.IO.Compression.ZipFile, Exception: Exception calling \"ExtractToFile\" with \"3\" argument(s): 
\"Access to the path 'D:\program64\my\app\my_app.exe' is denied.\"", "removed": false, "src": 
"D:\program64\my\app\binaries.zip"}

I check and there was no my_app.exe , when i did the extract manually it worked, i check also the policy they were ok, i think it is linked more to Windows than Ansible but can't figure out why and how.

PS : Using Kerberos auth manual.

Thanks,

在我的情况下 src: 意外地是一个文件夹而不是一个文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM