1

Is there a standard Ansible module for manipulating symbolic links (a wrapper of mklink)?

  • file does that only for Linux
  • win_file windows counterpart omits such functionality

1 Answer 1

3

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

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .