Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. - name: Copy file and run
  2. hosts: terminals
  3. tasks:
  4. - name: Copy a single file
  5. win_copy:
  6. src: '/tmp/ASDTech Shell Terminal Setup 4.0.0.exe'
  7. dest: 'C:TempASDTech Shell Terminal Setup 4.0.0.exe'
  8. - name: Check if file exist
  9. win_stat:
  10. path: 'C:TempASDTech Shell Terminal Setup 4.0.0.exe'
  11. register: file_info
  12. - name: Execute file
  13. raw: 'C:TempASDTech Shell Terminal Setup 4.0.0.exe'
  14. when: file_info.stat.exists == True
  15.  
  16. TASK [Execute file] *************************************************************************************************************************************************************************************************************************
  17. fatal: [50.18.46.45]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "C:\\Temp\\ASDTech : The term 'C:\\Temp\\ASDTech' is not recognized as the name of a cmdlet, function, script file, or rnoperable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try rnagain.rnAt line:1 char:1rn+ C:\\Temp\\ASDTech Shell Terminal Setup 4.0.0.exern+ ~~~~~~~~~~~~~~~~rn + CategoryInfo : ObjectNotFound: (C:\\Temp\\ASDTech:String) [], CommandNotFoundExceptionrn + FullyQualifiedErrorId : CommandNotFoundExceptionrn ", "stderr_lines": ["C:\\Temp\\ASDTech : The term 'C:\\Temp\\ASDTech' is not recognized as the name of a cmdlet, function, script file, or ", "operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try ", "again.", "At line:1 char:1", "+ C:\\Temp\\ASDTech Shell Terminal Setup 4.0.0.exe", "+ ~~~~~~~~~~~~~~~~", " + CategoryInfo : ObjectNotFound: (C:\\Temp\\ASDTech:String) [], CommandNotFoundException", " + FullyQualifiedErrorId : CommandNotFoundException", " "], "stdout": "", "stdout_lines": []}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement