Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. Variables
  2. AnsibleServer = current servername
  3. RemoteServerIP = server i'm trying to ping
  4. MyUsername = username with same password across local, proxy, and remote server
  5. MyProxyHostIP = proxy host IP
  6.  
  7. [ansible@AnsibleServer ~]$ ansible -m ping -i teams/monitoring/ RemoteServerIP -u MyUsername -k -vvvv
  8. Using /home/ansible/ansible.cfg as config file
  9. SSH password:
  10. Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
  11. Using module file /usr/lib/python2.7/site-packages/ansible/modules/core/system/ping.py
  12. <RemoteServerIP> ESTABLISH SSH CONNECTION FOR USER: MyUsername
  13. <RemoteServerIP> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=MyUsername -o ConnectTimeout=10 -o 'ProxyCommand=ssh -W %h:%p -q MyUsername@MyProxyHostIP' -o ControlPath=/home/ansible/.ansible/cp/ansible-ssh-%h-%p-%r RemoteServerIP '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1493141470.31-109633446072774 `" && echo ansible-tmp-1493141470.31-109633446072774="` echo ~/.ansible/tmp/ansible-tmp-1493141470.31-109633446072774 `" ) && sleep 0'"'"''
  14.  
  15. RemoteServerIP | UNREACHABLE! => {
  16. "changed": false,
  17. "msg": "Authentication failure.",
  18. "unreachable": true
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement