If i recall correctly the win_file module doesn't yet support links (pull 
requests welcome).

However, you can probably run this via the ansible win_shell or script 
module

https://docs.ansible.com/ansible/latest/modules/script_module.html

https://docs.ansible.com/ansible/latest/modules/win_shell_module.html

If you want to make the command re-runnable you can probably use the 
win_stat module to see if the file exists / is a link, register the result 
and only run your command above if needed.

https://docs.ansible.com/ansible/latest/modules/win_stat_module.html

Hope this helps,

Jon

On Thursday, January 9, 2020 at 3:03:27 PM UTC, Arjan Goos wrote:
>
> Hi,
>
> Is it possible to create itemType Junction (symbolic link) . 
>
> I want something like this:
>
>  New-Item -ItemType Junction -Path D:\Program-Files\website-Name conf 
> -Target D:\Data\Website\conf 
>
> Groeten,
>
> Arjan 
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cd823299-cb58-4a56-8340-4cd74558d8f4%40googlegroups.com.

Reply via email to