I'm having trouble setting Ansible with WinRM. Here's my environment:10.10.50.4 - Win1 - the windows computer im trying to connect to from Ansible (i've added this to the hosts file on my ansible host)10.10.50.6 - Win2 - another windows host10.10.50.5 - Ansible host (running Ubuntu 12.04)On Win1 I have setup a remoting endpoint using SSL (btw, the doc doesn't state wether SSL is required or recommended. non-ssl http connections should be an option imho)
I don't know why this is happening, and I realize that this is very much beta code. However, there are some (potentially important) points left out from the doc:1. Is SSL required, or should this work using http-based connections?
2. What requirements are there on the ssl cert being used? Does the ansible node need the public key of the cert being used on the windows side?
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/861e120b-88fe-4771-8099-b3e85400baac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/28312eb2-1563-43b3-9882-68a8ecf3e3fc%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/dd412d61-1842-4a45-b806-7bf8a203bda4%40googlegroups.com.
$VerbosePreference = "Continue"
iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/trondhindenes/b9b5b25b11273cc35659/raw/eb1f14ea65518fcd5e4a4159af4d68927c6e4fbf/configure-ansibletarget.ps1'))
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ba2c25f7-ae7c-410f-9cb4-8036e6b301c0%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1486b5a3-8b5b-4708-b3e2-80cd81aa0c61%40googlegroups.com.
winrm set winrm/config/service/auth @{Basic="true"}
And those both failed. I saw a post in here about a fork for supporting domain accounts, but it's still in development, although it sounds like it's progressing pretty well.
So then I:
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0c99a5ca-4e8e-49bf-ac06-a0ecbfb3149f%40googlegroups.com.
I'm having trouble setting Ansible with WinRM. Here's my environment:10.10.50.4 - Win1 - the windows computer im trying to connect to from Ansible (i've added this to the hosts file on my ansible host)10.10.50.6 - Win2 - another windows host10.10.50.5 - Ansible host (running Ubuntu 12.04)On Win1 I have setup a remoting endpoint using SSL (btw, the doc doesn't state wether SSL is required or recommended. non-ssl http connections should be an option imho)From 10.10.50.6 I can initiate a SSL-based PSremoting session to 10.10.50.4, which should prove that the remoting endpoint and ssl is correctly setup:$cred = Get-credential
$options = New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck
New-PSSession -ComputerName "10.10.50.4" -UseSSL -Credential $cred -SessionOption $optionsThis opens a session without warnings.Here's my hosts file in ansible:
and here's my windows groupvar file:
azur...@th-ansible10:~/AnsibleTest/pstest/group_vars$ cat windows.yml
# it is suggested that these be encrypted with ansible-vault:
# ansible-vault edit group_vars/windows.yml
ansible_ssh_user: thadministrator
ansible_ssh_pass: <password>
ansible_ssh_port: 5986
ansible_connection: winrmHere's the command I'm attempting:
azur...@th-ansible10:~/AnsibleTest/pstest$ ansible windows -i hosts -m win_ping -vvvv
#Check for basic authentication
$basicauthsetting = Get-ChildItem WSMan:\localhost\Service\Auth | where {$_.Name -eq "Basic"}
if (($basicauthsetting.Value) -eq $false)
{
Write-Verbose "Enabling basic auth"
Set-Item -Path "WSMan:\localhost\Service\Auth\Basic" -Value $true
}
Else
{
Write-verbose "basic auth already enabled"
}