So friday I updated my machine to windows 10, installed bash shell, configured kerberos and was able to perform simple actions such as win_ping, shut down a service, install a chocolatey package.
This morning came in and upgraded the bash environment in windows.
Now when running any of my playbooks that worked on friday, I am getting errors that /usr/bin/python cannot be found.
Try
{
/usr/bin/python ‘C:\Users\username\AppData\Local\Temp\ansible-tmp-1485182658.36-53484537865904\setup.ps1’
}
We can see its trying to run a powershell script, but trying to run it using python.
Any ideas on why this is happening or has changed? Where can I go to fix this locally if possible (on the ansible server)
So it sounds like for some reason it isn't picking up your group cars that are used to tell ansible to connect via pywinrm.
Make sure you are running from the same working directory as you were on Friday, just to be sure that the same paths apply.
Try running with -vvvvvv as well. I can't now recall if this will print out the paths it is using to determine where your inventory and group vars are, but worth a look.
That said my WSL is being strange today and not resolving hosts it has in the past, so it is possible there is something in recent windows updates that is tripping you up too.
Jon,
Don’t think that’s it. Did my best to check rights and permissions, it appears that all files can be accessed and variables are being read. See the below output (with some data removed). You can see connecting via winrm, sending powershell script, and then attempting to run powershell script using python.
`
Using /etc/ansible/ansible.cfg as config file
Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python2.7/dist-packages/ansible/plugins/callback/init.pyc
PLAYBOOK: playbook.yml *********************************************************
1 plays in playbook.yml
PLAY [windows] *****************************************************************