Advertisement
Guest User

Untitled

a guest
Nov 1st, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. ➜ workstation_setup ansible all -i hosts.ini -m ping -vvv
  2. ansible 2.7.0
  3. config file = None
  4. configured module search path = ['/Users/bogdan/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  5. ansible python module location = /usr/local/Cellar/ansible/2.7.0/libexec/lib/python3.7/site-packages/ansible
  6. executable location = /usr/local/bin/ansible
  7. python version = 3.7.0 (default, Jun 29 2018, 20:13:13) [Clang 9.1.0 (clang-902.0.39.2)]
  8. No config file found; using defaults
  9. Parsed /Users/bogdan/Projects/ansible/workstation_setup/hosts.ini inventory source with ini plugin
  10. META: ran handlers
  11. <192.168.33.20> ESTABLISH SSH CONNECTION FOR USER: vagrant
  12. <192.168.33.20> 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 User=vagrant -o ConnectTimeout=10 -o ControlPath=/Users/bogdan/.ansible/cp/ec620f82b4 192.168.33.20 '/bin/sh -c '"'"'echo ~vagrant && sleep 0'"'"''
  13. <192.168.33.20> (255, b'', b'vagrant@192.168.33.20: Permission denied (publickey,password).\r\n')
  14. 192.168.33.20 | UNREACHABLE! => {
  15. "changed": false,
  16. "msg": "Failed to connect to the host via ssh: vagrant@192.168.33.20: Permission denied (publickey,password).\r\n",
  17. "unreachable": true
  18. }
  19.  
  20. ==============================================
  21. ➜ workstation_setup ansible all -i hosts.ini -m ping -vvv -k
  22. ansible 2.7.0
  23. config file = None
  24. configured module search path = ['/Users/bogdan/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  25. ansible python module location = /usr/local/Cellar/ansible/2.7.0/libexec/lib/python3.7/site-packages/ansible
  26. executable location = /usr/local/bin/ansible
  27. python version = 3.7.0 (default, Jun 29 2018, 20:13:13) [Clang 9.1.0 (clang-902.0.39.2)]
  28. No config file found; using defaults
  29. SSH password:
  30. Parsed /Users/bogdan/Projects/ansible/workstation_setup/hosts.ini inventory source with ini plugin
  31. META: ran handlers
  32. <192.168.33.20> ESTABLISH CONNECTION FOR USER: vagrant on PORT 22 TO 192.168.33.20
  33. <192.168.33.20> EXEC /bin/sh -c 'echo ~vagrant && sleep 0'
  34. <192.168.33.20> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/vagrant/.ansible/tmp/ansible-tmp-1541057116.209486-87693429128759 `" && echo ansible-tmp-1541057116.209486-87693429128759="` echo /home/vagrant/.ansible/tmp/ansible-tmp-1541057116.209486-87693429128759 `" ) && sleep 0'
  35. Using module file /usr/local/Cellar/ansible/2.7.0/libexec/lib/python3.7/site-packages/ansible/modules/system/ping.py
  36. <192.168.33.20> PUT /Users/bogdan/.ansible/tmp/ansible-local-79410vtcp0a6v/tmpp2t5qlzs TO /home/vagrant/.ansible/tmp/ansible-tmp-1541057116.209486-87693429128759/AnsiballZ_ping.py
  37. <192.168.33.20> EXEC /bin/sh -c 'chmod u+x /home/vagrant/.ansible/tmp/ansible-tmp-1541057116.209486-87693429128759/ /home/vagrant/.ansible/tmp/ansible-tmp-1541057116.209486-87693429128759/AnsiballZ_ping.py && sleep 0'
  38. <192.168.33.20> EXEC /bin/sh -c '/usr/bin/python3 /home/vagrant/.ansible/tmp/ansible-tmp-1541057116.209486-87693429128759/AnsiballZ_ping.py && sleep 0'
  39. <192.168.33.20> EXEC /bin/sh -c 'rm -f -r /home/vagrant/.ansible/tmp/ansible-tmp-1541057116.209486-87693429128759/ > /dev/null 2>&1 && sleep 0'
  40. 192.168.33.20 | SUCCESS => {
  41. "changed": false,
  42. "invocation": {
  43. "module_args": {
  44. "data": "pong"
  45. }
  46. },
  47. "ping": "pong"
  48. }
  49. META: ran handlers
  50. META: ran handlers
  51. ➜ workstation_setup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement