Is there a standard Ansible module for manipulating symbolic links (a wrapper of mklink
)?
1 Answer
No. You will need to use:
win_command: cmd.exe /k mklink
If you think a symlink feature would be useful you could make it yourself and submit a PR, the powershell code for win_file is here: https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/windows/win_file.ps1
Or make a proposal here: https://github.com/ansible/ansible/issues/new?template=feature_request.md
-
The link to github.com/ansible/ansible/blob/devel/lib/ansible/modules/… is 404. Commented Feb 1, 2021 at 7:37