Ansible for Windows AD management – Anyone else doing this, or am I in the wild west?

Hi everyone,

I recently deployed Ansible to help me manage our Windows Active Directory infrastructure. I started with the basics—managing user accounts and doing some much-needed cleanup—but I’m looking to scale up toward Group Policy management, MS Entra/Intune and M365 management if that’s possible…

As I dive deeper, I have to ask: am I the only one using Ansible in the “windoze” space, or is this actually quite common?

Cheers,
Igor

1 Like

I manage a few packages for windows servers. notepad++, firefox …and yeah. it sucks hard!

1 Like

Never thought of this scenario. Interesting. But I’m more focused on managing endpoint devices rather than dcr in itself.

Hey @Aryston

Have you been using GitHub - ansible-collections/microsoft.ad: Ansible collection for Active Directory management · GitHub for the Active Directory pieces?

The GitHub - ansible-collections/ansible.windows: Windows core collection for Ansible · GitHub collection is very much active. I’m not aware of any Ansible collection with modules for Intune or M365 management via the Graph API, but there might be something out there.

1 Like

Hi Daniel,

This is exactly the one I’ve been using, and I am still learning how everything works. I put it in a Podman container running on WSL2 Debian, which has been working really well for managing AD from a Linux environment.

Thanks for the links, just starting to dig into it.

Cheers,
Igor

1 Like