Hi there,
I’ve tried:
- script module - powershell script
- win_command module - start.exe
- starting iexplore.exe with url
Nothing works. I guess the first command doesn’t work because ansible uses another user to start powershell. The logged in user must start the process.
Anybody knows how to start ie url with ansible?
I guess you might be able to get this to work by using win_psexec although I haven’t tried.
Starting interactive programs like this isn’t really what winrm is intended for (the ‘rm’ bit stands for ‘remote management’) and running interactive programs is sort of at the edge of machine management.
What are you trying to achieve? If you just want to use IE to download something from a URL have a look at the win_get_url module which will do this in a way that fits well with the rest of ansible.
Jon
Thanks for the answer.
I tried:
- win_psexec
- win_command
- script
- win_shell
Nothing worked so decided not to have this feature.
I am provisioning a new vm in vsphere for development testing purposes which installs specific versions of java, tomcat and in-house application and in the end wanted to open up IE showing the webapplication.
Perhaps next best thing is to use win_shortcut to create links to the applications on the desktop.