If you are using a 64 bit version of Windows 10 and a version later than Build 1607, you can install the Linux Subsystem and use Ansible from it.
Check if it’s 64 bit:
run msinfo from a command prompt and check the below details:

Recommendation is to install all the windows updates prior to the installation of Linux Subsystem.
Installation of Linux Subsystem for Windows:
Control Panel – Programs and Features – Turn Windows features on or off

Check Windows Subsystem for Linux