Glad you have it working. Out of interest, yes win_shortcut.ps1 is the right file.
I would recommend getting yourself a windows virtual machine or two to try things out against. I just use virtualbox, others prefer using vagrant. There are tools around like packer that you can use to spin up windows vms based on the time-limited evaluation versions that ms make available too. There's a walk through of how to develop windows modules here - https://docs.ansible.com/ansible/2.4/dev_guide/developing_modules_general_windows.html Its worth having a look at the other modules if you are thinking of creating your own module. Hope this helps, Jon On Sunday, January 14, 2018 at 6:46:32 PM UTC, [email protected] wrote: > > J! > I think I just fixed it! > Just for s+g's, I tried using directory AND src, and I believe it works > now! > Thanks! Very happy! > > Larry > > On Sunday, January 14, 2018 at 10:22:57 AM UTC-8, [email protected] > wrote: >> >> Hi J, >> Thanks for the reply. >> directory: does not do what i need. >> I am afraid I might hose something when I try this. >> Would I be looking at the "win_shortcut.psl" file? I have no idea what I >> would add. >> Do you think you could be more specific? I'm not yet a confident coder. >> >> >> >> On Sunday, January 14, 2018 at 12:29:05 AM UTC-8, J Hawkesworth wrote: >>> >>> Right, I understand what you mean now. >>> >>> Did you try setting 'directory' to the location where you want 'start >>> in' to be? >>> >>> If that doesn't do it, have a look at the module code, it's probably >>> going to be fairly straightforward to add another module parameter, >>> assuming the api supports setting the directory to start in. It would >>> probably be less work than writing your own script. >>> >>> If you do have to change the module code, please consider creating a >>> pull request to get it included into ansible. You can use it as a custom >>> module by copying into /etc/ansible/library (or wherever 'library' is set >>> to in your ansible.cfg file). >>> >>> Hope this helps, >>> >>> 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/4bfcaee8-6bed-42e6-8f8d-a2ee77eee200%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
