Interview Prep/Ansible/Architecture Decisions and Tool Comparisons

Ansible or PowerShell DSC for Windows?

AdvancedProductionArchitecture Decisions and Tool Comparisons
Answer
  • Ansible (ansible.windows, community.windows, microsoft.ad) over WinRM or SSH: one tool for Linux and Windows, agentless, easy orchestration across both. Good module coverage for features, services, registry, updates, IIS and Active Directory.
  • DSC: native Windows desired state with continuous enforcement through the Local Configuration Manager, deep coverage through DSC resources.

They combine well: ansible.windows.win_dsc runs any DSC resource from a playbook, so you get DSC's coverage with Ansible's orchestration and inventory.

- ansible.windows.win_dsc:
    resource_name: WindowsFeature
    Name: Web-Server
    Ensure: Present

Choose DSC alone only for Windows-only shops that need continuous enforcement and already have the skills.

All Ansible questions Roadmap: Ansible

More on Architecture Decisions and Tool Comparisons