Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ ansible-playbook -i inventory/ec2.py ssh-failure.yml -vvvv
- Using /home/user/Software/vagrant-machines/ansible/ansible.cfg as config file
- Loaded callback default of type stdout, v2.0
- 1 plays in ssh-failure.yml
- PLAY ***************************************************************************
- TASK [setup] *******************************************************************
- <ec2-<redacted>.compute-1.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ubuntu
- <ec2-<redacted>.compute-1.amazonaws.com> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="<redacted>' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-
- mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/%r -tt ec2-<redacted>.compute-1.amazonaws.com '( umask 22 && mkdir -p "$( echo $HOME/.ans
- ible/tmp/ansible-tmp-1453711656.24-211161124021194 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1453711656.24-211161124021194 )" )'
- <ec2-<redacted>.compute-1.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ubuntu
- <ec2-<redacted>.compute-1.amazonaws.com> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile=<redacted>' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mi
- c,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/%r -tt ec2-<redacted>.compute-1.amazonaws.com '( umask 22 && mkdir -p "$( echo $HOME/.ansible
- /tmp/ansible-tmp-1453711656.25-38271991931080 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1453711656.25-38271991931080 )" )'
- <ec2-<redacted>.compute-1.amazonaws.com> PUT /tmp/tmpnl45H5 TO /home/ubuntu/.ansible/tmp/ansible-tmp-1453711656.25-38271991931080/setup
- <ec2-<redacted>.compute-1.amazonaws.com> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile=<redacted>' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-w
- ith-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/%r '[ec2-<redacted>.compute-1.amazonaws.com]'
- <ec2-<redacted>.compute-1.amazonaws.com> PUT /tmp/tmpiHk0HV TO /home/ubuntu/.ansible/tmp/ansible-tmp-1453711656.24-211161124021194/setup
- <ec2-<redacted>.compute-1.amazonaws.com> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/home/user/.ssh/ec2-access"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi
- -with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/%r '[ec2-<redacted>.compute-1.amazonaws.com]'
- fatal: [ec2-<redacted>.compute-1.amazonaws.com]: FAILED! => {"failed": true, "msg": "ERROR! failed to transfer file to /home/ubuntu/.ansible/tmp/ansible-tmp-1453711656.24-211161124021194/setup:\nsftp> put /tmp/tmpiHk0HV /home/ubuntu/
- .ansible/tmp/ansible-tmp-1453711656.24-211161124021194/setup\n\nOpenSSH_6.7p1 Debian-5+deb8u1, OpenSSL 1.0.1k 8 Jan 2015\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options f
- or *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 12592\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id
- : 4\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension \"[email protected]\" revision 1\r\ndebug2: Server supports extension \"[email protected]\" revision 2\r\ndebug2: Server supports extension \"fstatvfs@openssh
- .com\" revision 2\r\ndebug2: Server supports extension \"[email protected]\" revision 1\r\ndebug2: Server supports extension \"[email protected]\" revision 1\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home
- /ubuntu size 0\r\ndebug3: Looking up /tmp/tmpiHk0HV\r\ndebug3: Sent message fd 5 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn't stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3
- P:/home/ubuntu/.ansible/tmp/ansible-tmp-1453711656.24-211161124021194/setup\r\nremote open(\"/home/ubuntu/.ansible/tmp/ansible-tmp-1453711656.24-211161124021194/setup\"): No such file or directory\r\ndebug3: mux_client_read_packet: read
- header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n"}
- <ec2-<redacted>.compute-1.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ubuntu
- <ec2-<redacted>.compute-1.amazonaws.com> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/home/user/.ssh/ec2-access"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/%r -tt ec2-<redacted>.compute-1.amazonaws.com '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-jjiggzwpgembhyddwbgcfqttgjroouid; LANG=sv_SE.UTF-8 LC_ALL=sv_SE.UTF-8 LC_MESSAGES=sv_SE.UTF-8 /usr/bin/python /home/ubuntu/.ansible/tmp/ansible-tmp-1453711656.25-38271991931080/setup; rm -rf "/home
- /ubuntu/.ansible/tmp/ansible-tmp-1453711656.25-38271991931080/" > /dev/null 2>&1'"'"'"'"'"'"'"'"''"'"''
- ok: [ec2-<redacted>.compute-1.amazonaws.com]
- TASK [debug] *******************************************************************
- task path: /home/user/Software/vagrant-machines/ansible/ssh-failure.yml:6
- ok: [ec2-<redacted>.compute-1.amazonaws.com] => {
- "msg": "This is just a demonstration"
- }
- NO MORE HOSTS LEFT *************************************************************
- PLAY RECAP *********************************************************************
- ec2-<redacted>.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0
- ec2-<redacted>.compute-1.amazonaws.com : ok=0 changed=0 unreachable=0 failed=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement