Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ ansible -m win_command -vvv -a "echo test" windows-machine
- ansible 2.9.20
- config file = /home/user/git/ansible-win/ansible.cfg
- configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
- ansible python module location = /usr/lib/python2.7/dist-packages/ansible
- executable location = /usr/bin/ansible
- python version = 2.7.17 (default, Feb 27 2021, 15:10:58) [GCC 7.5.0]
- Using /home/user/git/ansible-win/ansible.cfg as config file
- host_list declined parsing /home/user/git/ansible-win/hosts as it did not pass its verify_file() method
- script declined parsing /home/user/git/ansible-win/hosts as it did not pass its verify_file() method
- auto declined parsing /home/user/git/ansible-win/hosts as it did not pass its verify_file() method
- Parsed /home/user/git/ansible-win/hosts inventory source with ini plugin
- Skipping callback 'actionable', as we already have a stdout callback.
- Skipping callback 'counter_enabled', as we already have a stdout callback.
- Skipping callback 'debug', as we already have a stdout callback.
- Skipping callback 'dense', as we already have a stdout callback.
- Skipping callback 'dense', as we already have a stdout callback.
- Skipping callback 'full_skip', as we already have a stdout callback.
- Skipping callback 'json', as we already have a stdout callback.
- Skipping callback 'minimal', as we already have a stdout callback.
- Skipping callback 'null', as we already have a stdout callback.
- Skipping callback 'oneline', as we already have a stdout callback.
- Skipping callback 'selective', as we already have a stdout callback.
- Skipping callback 'skippy', as we already have a stdout callback.
- Skipping callback 'stderr', as we already have a stdout callback.
- Skipping callback 'unixy', as we already have a stdout callback.
- Skipping callback 'yaml', as we already have a stdout callback.
- META: ran handlers
- <windows-machine> ESTABLISH SSH CONNECTION FOR USER: None
- <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'"'"''
- <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')
- <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
- ausf�hrbaren Programms erkannt. �berpr�fen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern
- enthalten), und wiederholen Sie den Vorgang.
- In Zeile:1 Zeichen:1
- + /bin/sh -c 'echo ~ && sleep 0'
- + ~~~~~~~
- + CategoryInfo : ObjectNotFound: (/bin/sh:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- <windows-machine> ESTABLISH SSH CONNECTION FOR USER: None
- <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'"'"''
- <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')
- <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
- ausf�hrbaren Programms erkannt. �berpr�fen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern
- enthalten), und wiederholen Sie den Vorgang.
- In Zeile:1 Zeichen:1
- + /bin/sh -c 'echo "`pwd`" && sleep 0'
- + ~~~~~~~
- + CategoryInfo : ObjectNotFound: (/bin/sh:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- <windows-machine> ESTABLISH SSH CONNECTION FOR USER: None
- <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'"'"''
- <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')
- <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
- ausf�hrbaren Programms erkannt. �berpr�fen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern
- enthalten), und wiederholen Sie den Vorgang.
- In Zeile:1 Zeichen:1
- + /bin/sh -c '( umask 77 && mkdir -p "` echo ~/.ansible/tmp `"&& mkdir ...
- + ~~~~~~~
- + CategoryInfo : ObjectNotFound: (/bin/sh:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- windows-machine | UNREACHABLE! => {
- "changed": false,
- "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",
- "unreachable": true
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement