Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
I would like to open a web browser with ansible
48 views
Skip to first unread message
Julien
unread,
Oct 20, 2018, 5:48:28 AM
10/20/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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
'
Thank you
Petit Julien.
J Hawkesworth
unread,
Oct 22, 2018, 5:16:52 AM
10/22/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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
.
If you need to download something to the windows machine you can use win_get_url module.
Jon
Reply all
Reply to author
Forward
0 new messages