Hi Jon, The idea is to put a .py script into the shell:startup folder. So, I create a shortcut. <https://lh3.googleusercontent.com/-5Y2JWDlIgfY/Wlo9FdeWgGI/AAAAAAAAAPU/q9iXgwDvXyotVafklcE1bGOTuAeesj40ACLcBGAs/s1600/Screen%2BShot%2B2018-01-12%2Bat%2B1.37.55%2BPM.png> When I manually create the shortcut, it looks like the attachment. When I run this play instead of doing it manually, the "Start In" field is not populated, but everything else is fine. We can run jobs when that field is populated, but when it's not it does not run the job. Thus, the start in field must be populated. I couldn't find a var that worked, I tried args and everything else in the documentation. - name: Create shortcut to Launch Server.py in startup win_shortcut: src: C:\cygwin\home\YRunner\launch_server.py dest: C:\Users\YRunner\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\launch_server.py.lnk I think an alternative might be using a .sh script triggered by a batch file, but I don't know the syntax and it would be nice to let ansible do it as it should. On Saturday, January 13, 2018 at 1:54:30 AM UTC-8, J Hawkesworth wrote: > > Not sure I follow. > > Can you share your playbook step(s) that you are using? > > Jon > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20a4655f-3689-4498-82d1-f584f6cd85e7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Re: "Start in" field for win_shortcut
lpescatore via Ansible Project Sat, 13 Jan 2018 09:36:06 -0800
- [ansible-project] "Start in"... lpescatore via Ansible Project
- [ansible-project] "Start in&... 'J Hawkesworth' via Ansible Project
- [ansible-project] Re: "S... lpescatore via Ansible Project
- [ansible-project] Re: &qu... 'J Hawkesworth' via Ansible Project
- [ansible-project] Re:... lpescatore via Ansible Project
- [ansible-project... lpescatore via Ansible Project
- [ansible-pro... 'J Hawkesworth' via Ansible Project
