Its been a while and so there have probably been further updates to the Insider builds currently needed to run this, but I just tried this and managed to get ansible 2.1.0 installed via pip and able to win_ping a couple of windows boxes on my network.
To get to 2.1.0 I did the following
sudo pip install ansible
(got me 1.5.4)
sudo pip install ansible --upgrade
This failed first time as it couldn’t find python.h so I guessed I needed the python development package which I got via
sudo apt-get install python-dev
then I re-ran
sudo pip install ansible --upgrade
said ok but ansible didn’t run, so I ran
sudo pip uninstall ansible
and
sudo pip install ansible --upgrade
That got me a version of 2.1.0 than I could run
ansible localhost -m ping
successfully.
Then I ran
sudo pip install pywinrm
set up my inventory and group_vars and then I was able to
ansible windows -m win_ping
to talk to my windows hosts.
If you are thinking of trying this right now you need to
sign up for insider program (requires a microsoft login of some description)
be running 64 bit windows 10 (not sure if Enterprise edition is required, but that’s what I wound up using).
in advanced windows update settings, enable insider builds and slide the slider to ‘Fast’
wait for and grind through a lot of windows updates (for some reason I had to wait a couple of days to get the right update versions).
Go into windows features and enable Windows Subsystem for Linux (Beta)
Go through another reboot
start a dos box and type bash
wait while lots of stuff downloads
Hopefully not long till this gets into a released windows 10 build.
Jon