使用:
win_unzip:
src: "D:program64myappbinaries.zip"
dest: "D:program64myapp"
delete_archive: yes
我得到:
TASK [ Unzip zip file] ****************************
17:19:01 fatal: [myhost]: FAILED! => {"changed": true, "dest": "D:program64myapp", "msg":
"Error unzipping 'D:program64myappbinaries.zip' to 'D:program64myapp'!. Method:
System.IO.Compression.ZipFile, Exception: Exception calling "ExtractToFile" with "3" argument(s):
"Access to the path 'D:program64myappmy_app.exe' is denied."", "removed": false, "src":
"D:program64myappbinaries.zip"}
我检查了一下,没有my_app.exe
,当我手动提取时,它起作用了,我还检查了他们的策略,我认为它比Ansible更多地链接到Windows,但不知道为什么以及如何链接。
PS:使用Kerberos身份验证手册。
谢谢,
在我的例子中,src:意外地变成了文件夹而不是文件。