Guest User

Untitled

a guest
May 28th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. [defaults]
  2. host_key_checking = False
  3. remote_user = centos
  4. roles_path = ./roles
  5. pipelining = True
  6.  
  7. [ssh_connection]
  8. ssh_args = -F /etc/ansible/ssh/ssh_config
  9.  
  10. Host bastion.host
  11. Hostname bastion.host
  12. User centos
  13. IdentityFile /etc/ansible/ssh/KEY.pem
  14. StrictHostKeyChecking no
  15.  
  16. Host 10.*.*.*
  17. User centos
  18. ProxyCommand ssh -W %h:%p bastion.host
  19. IdentityFile /etc/ansible/ssh/KEY.pem
  20. StrictHostKeyChecking no
  21.  
  22. ansible -i /etc/ansible/inventories/aws-inventory/ec2.py tag_class_master -m ping
  23.  
  24. The authenticity of host 'bastion.host' can't be established.
  25. ECDSA key fingerprint is SHA256:vwYBZHWHDXx2ehQTEhzpD4EAcTTnu5cJWsNFPOYt9Q0.
  26. Are you sure you want to continue connecting (yes/no)? The authenticity of host 'bastion.host' can't be established.
  27. ECDSA key fingerprint is SHA256:vwYBZHWHDXx2ehQTEhzpD4EAcTTnu5cJWsNFPOYt9Q0.
  28. Are you sure you want to continue connecting (yes/no)? The authenticity of host 'bastion.host' can't be established.
  29. ECDSA key fingerprint is SHA256:vwYBZHWHDXx2ehQTEhzpD4EAcTTnu5cJWsNFPOYt9Q0.
  30. Are you sure you want to continue connecting (yes/no)? yes
  31. Please type 'yes' or 'no': yes
  32. Please type 'yes' or 'no': yes
  33. Please type 'yes' or 'no': yes
  34. Please type 'yes' or 'no': yes
  35. 10.0.1.178 | UNREACHABLE! => {
  36. "changed": false,
  37. "msg": "Failed to connect to the host via ssh: Host key verification failed.rnssh_exchange_identification: Connection closed by remote hostrn",
  38. "unreachable": true
  39. }
  40. 10.0.3.188 | UNREACHABLE! => {
  41. "changed": false,
  42. "msg": "Failed to connect to the host via ssh: Connection timed out during banner exchangern",
  43. "unreachable": true
  44. }
  45. 10.0.2.36 | UNREACHABLE! => {
  46. "changed": false,
  47. "msg": "Failed to connect to the host via ssh: Connection timed out during banner exchangern",
  48. "unreachable": true
  49. }
  50.  
  51. ansible 2.5.1
  52. config file = /etc/ansible/ansible.cfg
  53. configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  54. ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  55. executable location = /usr/bin/ansible
  56. python version = 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0]
  57.  
  58. FROM ubuntu:bionic-20180426
  59.  
  60. RUN apt-get update &&
  61. apt-get upgrade -y &&
  62. apt-get install -y ansible sshpass python-pip
  63.  
  64. # install boto python module for ec2 dynamic inventory
  65. RUN pip install boto
  66.  
  67. ENTRYPOINT /bin/bash
  68.  
  69. docker run -it --rm -v $(pwd):/etc/ansible/ ansible:ubuntu bash
Add Comment
Please, Sign In to add comment