Tuesday, September 29, 2020

Why Ansible is not good for automating win 10 dev box?

In the previous post about "How to automate the setup of Win 10 development machine by scripting?", it was mentioned the Ansible is a candidate to automate the win 10 development box setup by installing and configuring the dev tools. But that doesn't hold true anymore.

The major reason is that it is not native to Windows. It cannot run in Windows alone. It requires Cygwin or WSL in the host machine. If we want to set up prerequisites by ourselves, why should we spend on it to set up the dev environment?

We can argue that even for Chocolatey, there needs a PowerShell bootstrap script which installs Chocolatey. Similarly, why can't we write a PowerShell script to set up WSL in the machine? It doesn't seem native as well as there is no official support for running Ansible using WSL. Technically it is possible.

More details are available in the below link

https://github.com/joymon/win10-dev-box-setup/tree/master/ansible-powershell

Ansible still feels a tool to keep an eye on. It is not a dead end. I will be revisiting my decision when Microsoft includes WSL as part of Windows 10 and Ansible gets official support to run on WSL.

If anyone has a better approach, please add in the comments section.

No comments: