# I would like to open a web browser with ansible

**URL:** <https://forum.ansible.com/t/i-would-like-to-open-a-web-browser-with-ansible/28835>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [October 20, 2018, 9:48am UTC](https://forum.ansible.com/t/i-would-like-to-open-a-web-browser-with-ansible/28835 "2018-10-20T09:48:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julien](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@Julien](https://forum.ansible.com/u/Julien)\
**Post date:** [October 20, 2018, 9:48am UTC](https://forum.ansible.com/t/i-would-like-to-open-a-web-browser-with-ansible/28835/1 "2018-10-20T09:48:28Z")

</div>

Hello I’d like to open a web browser into my Windows session with ansible, i’ve tried with this playbook, but this has no effect on my session

- name: Starting nginx  
win\_shell: Start-Process -FilePath ‘D:\Stream\nginx-rtmp-win32-master\nginx.exe’

- name: Starting all vivaldi windows  
win\_shell: start-process -FilePath ‘C:\Users\Julien\AppData\Local\Vivaldi\Application\vivaldi.exe’ -ArgumentList ‘[www.site.com](http://www.site.com)’

Thank you

Petit Julien.

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [October 22, 2018, 9:16am UTC](https://forum.ansible.com/t/i-would-like-to-open-a-web-browser-with-ansible/28835/2 "2018-10-22T09:16:52Z")

</div>

By default winrm only has a batch logon, so starting interactive programs can’t be done like this.

You might be able to use ‘become’ to achieve what you want - see See [https://docs.ansible.com/ansible/2.6/user\_guide/become.html#become-and-windows](https://docs.ansible.com/ansible/2.6/user_guide/become.html#become-and-windows).

If you need to download something to the windows machine you can use win\_get\_url module.

Jon
