Advertisement
betterbyte

Untitled

Aug 29th, 2017
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. root@ip-172-31-10-172:~/play-1# ansible -vvv 10.0.3.135 -i inventory -m ping -u ubuntu -k
  2. ansible 2.4.0 (devel cd8c1c1108) last updated 2017/08/24 03:01:55 (GMT +000)
  3. config file = /root/play-1/ansible.cfg
  4. configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  5. ansible python module location = /root/ansible/lib/ansible
  6. executable location = /root/ansible/bin/ansible
  7. python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
  8. Using /root/play-1/ansible.cfg as config file
  9. SSH password:
  10. Parsed /root/play-1/inventory inventory source with ini plugin
  11. META: ran handlers
  12. Using module file /root/ansible/lib/ansible/modules/system/ping.py
  13. <10.0.3.135> ESTABLISH SSH CONNECTION FOR USER: ubuntu
  14. <10.0.3.135> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ubuntu -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d2fd70e52d 10.0.3.135 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
  15. <10.0.3.135> (0, '/home/ubuntu\n', '')
  16. <10.0.3.135> ESTABLISH SSH CONNECTION FOR USER: ubuntu
  17. <10.0.3.135> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ubuntu -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d2fd70e52d 10.0.3.135 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1504022337.95-250494400179220 `" && echo ansible-tmp-1504022337.95-250494400179220="` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1504022337.95-250494400179220 `" ) && sleep 0'"'"''
  18. <10.0.3.135> (0, 'ansible-tmp-1504022337.95-250494400179220=/home/ubuntu/.ansible/tmp/ansible-tmp-1504022337.95-250494400179220\n', '')
  19. <10.0.3.135> PUT /tmp/tmpGNC9W9 TO /home/ubuntu/.ansible/tmp/ansible-tmp-1504022337.95-250494400179220/ping.py
  20. <10.0.3.135> SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ubuntu -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d2fd70e52d '[10.0.3.135]'
  21. <10.0.3.135> (0, 'sftp> put /tmp/tmpGNC9W9 /home/ubuntu/.ansible/tmp/ansible-tmp-1504022337.95-250494400179220/ping.py\n', '')
  22. <10.0.3.135> ESTABLISH SSH CONNECTION FOR USER: ubuntu
  23. <10.0.3.135> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ubuntu -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d2fd70e52d 10.0.3.135 '/bin/sh -c '"'"'chmod u+x /home/ubuntu/.ansible/tmp/ansible-tmp-1504022337.95-250494400179220/ /home/ubuntu/.ansible/tmp/ansible-tmp-1504022337.95-250494400179220/ping.py && sleep 0'"'"''
  24. <10.0.3.135> (0, '', '')
  25. <10.0.3.135> ESTABLISH SSH CONNECTION FOR USER: ubuntu
  26. <10.0.3.135> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ubuntu -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d2fd70e52d -tt 10.0.3.135 '/bin/sh -c '"'"'/usr/bin/python /home/ubuntu/.ansible/tmp/ansible-tmp-1504022337.95-250494400179220/ping.py; rm -rf "/home/ubuntu/.ansible/tmp/ansible-tmp-1504022337.95-250494400179220/" > /dev/null 2>&1 && sleep 0'"'"''
  27. <10.0.3.135> (0, 'Traceback (most recent call last):\r\n File "/home/ubuntu/.ansible/tmp/ansible-tmp-1504022337.95-250494400179220/ping.py", line 17, in <module>\r\n import zipfile\r\nImportError: No module named zipfile\r\n', 'Shared connection to 10.0.3.135 closed.\r\n')
  28. 10.0.3.135 | FAILED! => {
  29. "changed": false,
  30. "failed": true,
  31. "module_stderr": "Shared connection to 10.0.3.135 closed.\r\n",
  32. "module_stdout": "Traceback (most recent call last):\r\n File \"/home/ubuntu/.ansible/tmp/ansible-tmp-1504022337.95-250494400179220/ping.py\", line 17, in <module>\r\n import zipfile\r\nImportError: No module named zipfile\r\n",
  33. "msg": "MODULE FAILURE",
  34. "rc": 0
  35. }
  36. root@ip-172-31-10-172:~/play-1#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement