[英]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.我检查并没有
my_app.exe
,当我手动提取它时,它起作用了,我还检查了它们是否正常的策略,我认为它与 Windows 的链接比 Ansible 的更多,但无法弄清楚原因和方式。
PS : Using Kerberos auth manual. PS:使用 Kerberos 身份验证手册。
Thanks,谢谢,
在我的情况下 src: 意外地是一个文件夹而不是一个文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.