I recently install Ansible 1.8, and I’m testing its fonctionnality
I recently installed Ansible 1.8 on Debian 7.1, I test its functionality in order to work with.
But testing the functionality of Windows logon, I have a connection error as shown below:
I create a file windows.yml under /etc/ansible/group_vars indicating in the pameters of my windows server and I added the address of my host in the /etc/ansible/hosts.
Thanks J Hawkesworth for your response**.** I resolve the problem at the end by doing this steps in a windows 7 sp1 and in a windows server 2012:
`
1 - run powershell as an administrator
2 - For Remote Signed, run Set-ExecutionPolicy RemoteSigned.
3 - For Unrestricted, run Set-ExecutionPolicy Unrestricted.
4 - Verify that the command did not produce any errors.
5 - Type Exit at the PowerShell command prompt.
If in executing this script we have the error below (in windows 7 sp1):
.\ConfigureRemotingForAnsible.ps1
–>.ps1 : PowerShell/Windows Management Framework needs to be updated to 3 or higher. Stopping script
C:\Users\admin\Documents\Ansible> .\ConfigureRemotingForAnsible.ps1
WinRM a été mis à jour pour recevoir des demandes.
Le type du service WinRM a été correctement modifié.
WinRM a été mis à jour pour la gestion à distance.
Écouteur WinRM créé sur HTTP://* pour accepter les demandes de la gestion des services Web sur toutes les adresses IP d
e cet ordinateur.
Exception de pare-feu WinRM activée.
Since you are getting a 401 Unauthorised response I think maybe you have not supplied the correct password for dev_user
Try checking the event log on the windows machine to see if the login request is being denied.
What port have you set in your group_vars for talking to windows - it looks like it is 5985. I suspect it is only trying https because the http connection failed because the password supplied for the user was incorrect (or perhaps the local user does not exist on your destination machine).