In my playbook, I need to create a symbolic link for a repo.
With command (shell) it may work like this:
########## Create symbolic link - name: Create
Simply:
- name: Create symbolic link file: src: "{{SOURCE_FOLDER}}" dest: "/opt/application/i99/SYMLINK" state: link
As you can see in the manual for the file module:
src Will accept absolute, relative and nonexisting paths. Relative paths are not expanded.
src