2016-09-19 9 views
0

私は自分のlinux ec2と話すことができますが、私のウィンドウec2に問題があります。 Ansibleがインストールされている私のLinuxホスト上でリモートのWindowsサーバー可能なエラー。 aws ec2でansilbeを設定した後、windowsノードに到達できません。

PS C:\Users\name.domain> Winrm quickconfig 
WinRM service is already running on this machine. 
WinRM is already set up for remote management on this computer. 

は:

# klist 
Ticket cache: FILE:/tmp/krb5cc_0 
Default principal: [email protected] 

Valid starting  Expires    Service principal 
09/19/2016 10:02:18 09/19/2016 20:02:18 krbtgt/[email protected] 
renew until 09/26/2016 10:02:12 


/etc/ansible/hosts 

[local] 
127.0.0.1 

[windows] 
ip address 

[windows:vars] 
ansible_user= [email protected] 
ansible_password= password 
ansible_port= 5985 
ansible_connection= winrm 

これはAnsibleをしようとしていること、それはそうエラー

# ansible windows -m win_ping 
    ip_address | UNREACHABLE! => { 
    "changed": false, 
    "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.VerifiedHTTPSConnectio  n object at 0x3585d90>, 'Connection to ip_address timed out. (connect timeout=30)'))", 
    "unreachable": true 
    } 

答えて

0

ですKerberosを使用してWindows EC2に接続します。あなたのansible_userにはこれが含まれていると思われます。@ Domain.com。最初の質問:本当にKerberos/Active Directoryを使用しますか?最初のステップではローカル管理者アカウントを使用する方がはるかに簡単です。ここでの例を参照してください:https://github.com/jonashackt/ansible-windows-springboot(これはVagrantを使用しますが、AWSに簡単に適応できると思います)。

また、Active Directoryのサポートが必要な場合は、docs are statingのようにすべてを正しく設定しましたか?このエラーは、そこに記載されている最初のステップに関連しているようです。要求番号:

pip install kerberos requests_kerberos 
関連する問題