Advertisement
Guest User

ansible ssh windows

a guest
Apr 30th, 2021
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.44 KB | None | 0 0
  1. $ ansible -m win_command -vvv -a "echo test" windows-machine
  2. ansible 2.9.20
  3. config file = /home/user/git/ansible-win/ansible.cfg
  4. configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  5. ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  6. executable location = /usr/bin/ansible
  7. python version = 2.7.17 (default, Feb 27 2021, 15:10:58) [GCC 7.5.0]
  8. Using /home/user/git/ansible-win/ansible.cfg as config file
  9. host_list declined parsing /home/user/git/ansible-win/hosts as it did not pass its verify_file() method
  10. script declined parsing /home/user/git/ansible-win/hosts as it did not pass its verify_file() method
  11. auto declined parsing /home/user/git/ansible-win/hosts as it did not pass its verify_file() method
  12. Parsed /home/user/git/ansible-win/hosts inventory source with ini plugin
  13. Skipping callback 'actionable', as we already have a stdout callback.
  14. Skipping callback 'counter_enabled', as we already have a stdout callback.
  15. Skipping callback 'debug', as we already have a stdout callback.
  16. Skipping callback 'dense', as we already have a stdout callback.
  17. Skipping callback 'dense', as we already have a stdout callback.
  18. Skipping callback 'full_skip', as we already have a stdout callback.
  19. Skipping callback 'json', as we already have a stdout callback.
  20. Skipping callback 'minimal', as we already have a stdout callback.
  21. Skipping callback 'null', as we already have a stdout callback.
  22. Skipping callback 'oneline', as we already have a stdout callback.
  23. Skipping callback 'selective', as we already have a stdout callback.
  24. Skipping callback 'skippy', as we already have a stdout callback.
  25. Skipping callback 'stderr', as we already have a stdout callback.
  26. Skipping callback 'unixy', as we already have a stdout callback.
  27. Skipping callback 'yaml', as we already have a stdout callback.
  28. META: ran handlers
  29. <windows-machine> ESTABLISH SSH CONNECTION FOR USER: None
  30. <windows-machine> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/601f6dc27f windows-machine '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
  31. <windows-machine> (1, '', '/bin/sh : Die Benennung "/bin/sh" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines \r\nausf\x81hrbaren Programms erkannt. \x9aberpr\x81fen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern \r\nenthalten), und wiederholen Sie den Vorgang.\r\nIn Zeile:1 Zeichen:1\r\n+ /bin/sh -c \'echo ~ && sleep 0\'\r\n+ ~~~~~~~\r\n + CategoryInfo : ObjectNotFound: (/bin/sh:String) [], CommandNotFoundException\r\n + FullyQualifiedErrorId : CommandNotFoundException\r\n \r\n')
  32. <windows-machine> Failed to connect to the host via ssh: /bin/sh : Die Benennung "/bin/sh" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines
  33. ausf�hrbaren Programms erkannt. �berpr�fen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern
  34. enthalten), und wiederholen Sie den Vorgang.
  35. In Zeile:1 Zeichen:1
  36. + /bin/sh -c 'echo ~ && sleep 0'
  37. + ~~~~~~~
  38. + CategoryInfo : ObjectNotFound: (/bin/sh:String) [], CommandNotFoundException
  39. + FullyQualifiedErrorId : CommandNotFoundException
  40. <windows-machine> ESTABLISH SSH CONNECTION FOR USER: None
  41. <windows-machine> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/601f6dc27f windows-machine '/bin/sh -c '"'"'echo "`pwd`" && sleep 0'"'"''
  42. <windows-machine> (1, '', '/bin/sh : Die Benennung "/bin/sh" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines \r\nausf\x81hrbaren Programms erkannt. \x9aberpr\x81fen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern \r\nenthalten), und wiederholen Sie den Vorgang.\r\nIn Zeile:1 Zeichen:1\r\n+ /bin/sh -c \'echo "`pwd`" && sleep 0\'\r\n+ ~~~~~~~\r\n + CategoryInfo : ObjectNotFound: (/bin/sh:String) [], CommandNotFoundException\r\n + FullyQualifiedErrorId : CommandNotFoundException\r\n \r\n')
  43. <windows-machine> Failed to connect to the host via ssh: /bin/sh : Die Benennung "/bin/sh" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines
  44. ausf�hrbaren Programms erkannt. �berpr�fen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern
  45. enthalten), und wiederholen Sie den Vorgang.
  46. In Zeile:1 Zeichen:1
  47. + /bin/sh -c 'echo "`pwd`" && sleep 0'
  48. + ~~~~~~~
  49. + CategoryInfo : ObjectNotFound: (/bin/sh:String) [], CommandNotFoundException
  50. + FullyQualifiedErrorId : CommandNotFoundException
  51. <windows-machine> ESTABLISH SSH CONNECTION FOR USER: None
  52. <windows-machine> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/601f6dc27f windows-machine '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo ~/.ansible/tmp `"&& mkdir "` echo ~/.ansible/tmp/ansible-tmp-1619775614.5-16099-161739529298006 `" && echo ansible-tmp-1619775614.5-16099-161739529298006="` echo ~/.ansible/tmp/ansible-tmp-1619775614.5-16099-161739529298006 `" ) && sleep 0'"'"''
  53. <windows-machine> (1, '', '/bin/sh : Die Benennung "/bin/sh" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines \r\nausf\x81hrbaren Programms erkannt. \x9aberpr\x81fen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern \r\nenthalten), und wiederholen Sie den Vorgang.\r\nIn Zeile:1 Zeichen:1\r\n+ /bin/sh -c \'( umask 77 && mkdir -p "` echo ~/.ansible/tmp `"&& mkdir ...\r\n+ ~~~~~~~\r\n + CategoryInfo : ObjectNotFound: (/bin/sh:String) [], CommandNotFoundException\r\n + FullyQualifiedErrorId : CommandNotFoundException\r\n \r\n')
  54. <windows-machine> Failed to connect to the host via ssh: /bin/sh : Die Benennung "/bin/sh" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines
  55. ausf�hrbaren Programms erkannt. �berpr�fen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern
  56. enthalten), und wiederholen Sie den Vorgang.
  57. In Zeile:1 Zeichen:1
  58. + /bin/sh -c '( umask 77 && mkdir -p "` echo ~/.ansible/tmp `"&& mkdir ...
  59. + ~~~~~~~
  60. + CategoryInfo : ObjectNotFound: (/bin/sh:String) [], CommandNotFoundException
  61. + FullyQualifiedErrorId : CommandNotFoundException
  62. windows-machine | UNREACHABLE! => {
  63. "changed": false,
  64. "msg": "Failed to create temporary directory.In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p \"` echo ~/.ansible/tmp `\"&& mkdir \"` echo ~/.ansible/tmp/ansible-tmp-1619775614.5-16099-161739529298006 `\" && echo ansible-tmp-1619775614.5-16099-161739529298006=\"` echo ~/.ansible/tmp/ansible-tmp-1619775614.5-16099-161739529298006 `\" ), exited with result 1",
  65. "unreachable": true
  66. }
  67.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement