Windows access denied

Hello all,

I am following this turorial http://docs.ansible.com/intro_windows.html to install the python on ansible but i keep running into problem. I think it has something to do with the windows run as administrator or something.

Here is what ansible says:
This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.

This is my playbook code:

  • name: Run the script
    hosts: windows_server
    tasks:
  • name: Install Python
    win_msi:
    path=“C:/Users/vagrant/Downloads/python-2.7.9.msi” state=present

I can ping to my server run the raw commend like ipconfig and retrieve the output but can’t seem to download or install anything.

Thank you so much for your help!

A few things you could try…

check the windows event log

Check the user you are connecting with is actually a member of the administrators group.

log in to the windows machine as the same user you are connecting via ansible with and attempt to run the same msi.

Hope this helps,

Jon