It is not feasible to use Ansible to setup Win 10 dev box. Technically it would be possible by pre-installing some other prerequisites. But comparing to the native Choco+PowerShell support, it is not worth investing much time in Ansible to script out the Win 10 dev box setup
Below are some hurdles in using Ansible for Win 10 dev box setup
- Is Ansible native to Windows?
- No. But it has support for managing Windows machines using PowerShell.
- Setting up Windows host machine to be used by Linux control machine
- Can Ansible run on Windows?
- No (as of v2.10). Only it can manage. The control has to be from Linux. Though it can run from WSL, it is not officially supported
- Setting up WSL itself a task needs to be automated. So cannot have WSL as prerequisite
- Another option is Cygwin. But that has to be setup manually (may be can automate via PowerShell) before running Ansible scripts.
- Does Ansible has any plans to run from Windows machine?
- No. That is not the goal of the project and even they discourage asking that question.
- Technical challenge details from its developer
- More links, 1
- Revisit when Windows 10 starts shipping WSL out of the box and WSL is officially supported by Ansible