Advertisement
Guest User

Untitled

a guest
Sep 19th, 2016
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. PS C:Usersname.domain> Winrm quickconfig
  2. WinRM service is already running on this machine.
  3. WinRM is already set up for remote management on this computer.
  4.  
  5. # klist
  6. Ticket cache: FILE:/tmp/krb5cc_0
  7. Default principal: user_name@domain.local
  8.  
  9. Valid starting Expires Service principal
  10. 09/19/2016 10:02:18 09/19/2016 20:02:18 krbtgt/DOMAIN.LOCAL@DOMAIN.LOCAL
  11. renew until 09/26/2016 10:02:12
  12.  
  13.  
  14. /etc/ansible/hosts
  15.  
  16. [local]
  17. 127.0.0.1
  18.  
  19. [windows]
  20. ip address
  21.  
  22. [windows:vars]
  23. ansible_user= name@Domain.com
  24. ansible_password= password
  25. ansible_port= 5985
  26. ansible_connection= winrm
  27.  
  28.  
  29.  
  30. # ansible windows -m win_ping
  31. ip_address | UNREACHABLE! => {
  32. "changed": false,
  33. "msg": "kerberos: requested auth method is kerberos, but requests_kerberos is not installed, ssl: HTTPSConnectionPool(host='ip_address', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x3585d90>, 'Connection to ip_address timed out. (connect timeout=30)'))",
  34. "unreachable": true
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement