If anyone else in here are interested in Windows support, I’ve published an updated version of the winrm configuration script which basically performs a fire-and-forget setup of WinRM for https.
I’m trying to be as smart as possible and do as little as possible, so if WinRM over https is already enabled (like it is on VMs running in Azure) i’m skipping that part. The script should also work on Windows 2008R2 hosts where PowerShell 3.0 is enabled (I’ve made that a hard requirement as Ansible won’t run on lower versions of PowerShell).
In any case, I’d be happy to take feedback on it, and if Michael wants to add this to the “scripts” folder inside the source at some point then I’d be all for that of course.
https://gist.github.com/trondhindenes/b9b5b25b11273cc35659
Want to perhaps send me a pull request?
Outstanding! We’ll be testing shortly.
If you want to send me a pull request for this, I can add this to example/scripts already, and we can put a “Trond Hindenes has written a script to automate this configuration HERE” in the docs, which will get a ton more eyes on it, and likely some pull requests against it as well
(As there’s a decent portion of us who are just on github vs this list - unfortunately - but may still encounter from the docs)
No prob, I’ll do that. I have a few other win modules and some optimizations in the works, so I’ll just have to figure out how to do multiple pull requests from the same fork.
Hi Trond!
I’m very interested, I just joined a project where I need this exactly, wondering if you still have that available, the link sends 404, I snooped a bit in https://github.com/trondhindenes but I didn’t see it! Would you mind sharing this again if you have it handy?
Thanks! Erick
I’m assuming that’s the one Erick mentions. Erick, that got merged in and has now taken of its own with changes from a bunch of people.
It’s also referenced in the docs: http://docs.ansible.com/ansible/intro_windows.html#windows-system-prep
Thanks Trond and Matt! I just saw your reply, never got any kind of notification from google!!! I thought I had checked the box to send me the updates. I ended up building a script using PsExec to accomplish this, but currently I am into building UI tools for other folks, so I will definitely revisit and look into Trond´s. Thanks a ton for your quick reply, sorry for the late thanks!
Erick