this post was submitted on 26 Jan 2024
18 points (90.9% liked)

Ansible

239 readers
1 users here now

# TODO

founded 2 years ago
MODERATORS
 

Has anyone had success with using Ansible to manage Windows?

top 5 comments
sorted by: hot top controversial new old
[–] takeda 2 points 10 months ago (1 children)

I suppose a lot of things have changed and I'm just out of date, but doesn't absolutely work by configuring machines via SSH? How would that work on Windows. If you want to use CM for this wouldn't one with an agent (for example saltstack or chef) be more suitable?

If ansible does work on Windows, why not try it out and see if it does what you need? One of selling points if ansible over competition is that it doesn't require setting an infrastructure to use it, so testing would take much less effort.

[–] [email protected] 2 points 10 months ago (1 children)

Ansible on Windows uses WinRM but believe it or not there is also SSH for windows. (I use it to admin a single machine.)

[–] vegetaaaaaaa 1 points 9 months ago (1 children)

In my basic tests (initial setup of an AD DC, just a lab environment), it does work through WinRM. What gave me a headache is tying to enable "secure" (TLS) WinrRM using a self-signed certificate. I should do some cleanup and post the setup someday.

[–] [email protected] 1 points 9 months ago

That's why I use SSH

[–] [email protected] 2 points 10 months ago

I am using it to manage ~20 servers. some IIS, some file/share ACLs, and i could not imagine configureing scheduled tasks any other way. In my experience, setting up the TLS for wsman is the biggest hassle. I have just toyed around with the openssh auth, never got it working in production. I am hoping ms moves in that direction and away from wsman