Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ip-172-31-10-172:~/play-1# ansible -vvv 10.0.3.135 -i inventory -m ping -u ubuntu -k
- ansible 2.4.0 (devel cd8c1c1108) last updated 2017/08/24 03:01:55 (GMT +000)
- config file = /root/play-1/ansible.cfg
- configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
- ansible python module location = /root/ansible/lib/ansible
- executable location = /root/ansible/bin/ansible
- python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
- Using /root/play-1/ansible.cfg as config file
- SSH password:
- Parsed /root/play-1/inventory inventory source with ini plugin
- META: ran handlers
- Using module file /root/ansible/lib/ansible/modules/system/ping.py
- <10.0.3.135> ESTABLISH SSH CONNECTION FOR USER: ubuntu
- <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'"'"''
- <10.0.3.135> (0, '/home/ubuntu\n', '')
- <10.0.3.135> ESTABLISH SSH CONNECTION FOR USER: ubuntu
- <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'"'"''
- <10.0.3.135> (0, 'ansible-tmp-1504022337.95-250494400179220=/home/ubuntu/.ansible/tmp/ansible-tmp-1504022337.95-250494400179220\n', '')
- <10.0.3.135> PUT /tmp/tmpGNC9W9 TO /home/ubuntu/.ansible/tmp/ansible-tmp-1504022337.95-250494400179220/ping.py
- <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]'
- <10.0.3.135> (0, 'sftp> put /tmp/tmpGNC9W9 /home/ubuntu/.ansible/tmp/ansible-tmp-1504022337.95-250494400179220/ping.py\n', '')
- <10.0.3.135> ESTABLISH SSH CONNECTION FOR USER: ubuntu
- <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'"'"''
- <10.0.3.135> (0, '', '')
- <10.0.3.135> ESTABLISH SSH CONNECTION FOR USER: ubuntu
- <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'"'"''
- <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')
- 10.0.3.135 | FAILED! => {
- "changed": false,
- "failed": true,
- "module_stderr": "Shared connection to 10.0.3.135 closed.\r\n",
- "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",
- "msg": "MODULE FAILURE",
- "rc": 0
- }
- root@ip-172-31-10-172:~/play-1#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement