ansible-for-devops
ansible-for-devops copied to clipboard
Ansible for Windows
I want to use Ansible to manage Windows 11 virtual machines, which will serve as end-user VDIs. My plan is to create and version-control the Ansible playbooks in Bitbucket. On each VM, I’ll install WSL and Ansible, then use Task Scheduler to run an ansible-pull command monthly. This will ensure each VM gets the latest software updates and configurations from the central repository (mostly chocolatey). Is this a recommended or scalable approach for software management in this type of environment?
I guess it's OK if you do it that way, but the usual method for managing Windows systems is with the winrm connection type and modules with the win_ prefix in their names. No need to install anything on the Windows side; it typically uses PowerShell (which comes standard with Windows these days) instead of Python. See the Ansible documentation about Windows Remote Management. Granted, I've set this up many years ago for Server 2016, but I would hope that would be similar enough to 11.