1
,可以从一个虚拟机(窗)用ansible复制文件到另一个虚拟机(窗)不能从一个虚拟机(窗)用ansible复制文件到另一个虚拟机(窗)
- script: test.ps1
Z:是网络地图 副本Z:\ PROGRA〜1 \测试\ FILE.TXT C:\用户\ file.txt的
failed with error:
changed: [{{ host1 }}] => {"changed": true, "rc": 0, "stderr": "copy : Cannot fi
nd drive. A drive with the name z does not exist.\r\nAt C:\\Users\\vagrant\\AppD
ata\\Local\\Temp\\ansible-tmp-1427807499.79-10385112351761\r\n7\\test.ps1:1 char
:1\r\n+ copy z:\\PROGRA~1\\DyadicSec\\ssl\\192.168.50.13.cert C:\\Users\\192.168
.50.12.cert\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~\r\n + CategoryInfo : ObjectNotFound: (z:String) [Copy
-Item], DriveNot \r\n FoundException\r\n + FullyQualifiedErrorId : DriveNot
Found,Microsoft.PowerShell.Commands.Copy \r\n ItemCommand\r\n \r\n", "stdout":
""}
,如果我在虚拟机上运行PS1其做工精细