Advertisement
Guest User

Untitled

a guest
Mar 12th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. server {
  2. listen 5986 default ssl;
  3. server_name localhost;
  4.  
  5. ssl_certificate ssl/nginx.crt;
  6. ssl_certificate_key ssl/nginx.key;
  7.  
  8. location /host-c {
  9. proxy_pass https://host-c-address:5986/wsman;
  10. }
  11. }
  12.  
  13. [windows]
  14. host-c ansible_host=host-b ansible_winrm_path=host-c
  15.  
  16. ansible_user: myuser
  17. ansible_pass: andmypass
  18. ansible_port: 5986
  19. ansible_connection: winrm
  20. ansible_winrm_realm: HOSTCDOMAIN.LOCAL
  21. ansible_winrm_scheme: https
  22. ansible_winrm_transport: kerberos
  23. ansible_winrm_server_cert_validation: ignore
  24.  
  25. fatal: [host-c]: FAILED! => {"failed": true, "msg": "ssl: 401 Unauthorized."}
  26.  
  27. [logging]
  28. default = FILE:/var/log/krb5libs.log
  29. kdc = FILE:/var/log/krb5kdc.log
  30. admin_server = FILE:/var/log/kadmind.log
  31.  
  32. [libdefaults]
  33. default_realm = HOSTCDOMAIN.LOCAL
  34. dns_lookup_realm = false
  35. dns_lookup_kdc = false
  36. ticket_lifetime = 24h
  37. renew_lifetime = 7d
  38. forwardable = false
  39.  
  40. [realms]
  41. AEBEL.LOCAL = {
  42. kdc = host-b
  43. }
  44.  
  45. [domain_realm]
  46. .hostcdomain.local = HOSTCDOMAIN.LOCAL
  47.  
  48. # kinit myuser@HOSTCDOMAIN.LOCAL
  49. Password for myuser@HOSTCDOMAIN.LOCAL:
  50.  
  51. # klist
  52.  
  53. Ticket cache: FILE:/tmp/krb5cc_0
  54. Default principal: myuser@HOSTCDOMAIN.LOCAL
  55.  
  56. Valid starting Expires Service principal
  57. 03/12/2016 20:23:35 03/13/2016 06:23:35 krbtgt/HOSTCDOMAIN.LOCAL@HOSTCDOMAIN.LOCAL
  58. renew until 03/19/2016 20:23:31
  59.  
  60. e# ansible-playbook test_win.yml -vvv
  61. Using /etc/ansible/ansible.cfg as config file
  62. 1 plays in test_win.yml
  63.  
  64. PLAY [Ping windows] ************************************************************
  65.  
  66. TASK [ping] ********************************************************************
  67. task path: /etc/ansible/test_win.yml:5
  68. <aebel-worker> ESTABLISH WINRM CONNECTION FOR USER: myuser on PORT 5986 TO host-b
  69. fatal: [host-c]: FAILED! => {"failed": true, "msg": "kerberos: (('Unspecified GSS failure. Minor code may provide more information', 851968), ('Server not found in Kerberos database', -1765328377))"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement