Skip to content

Commit

Permalink
relative symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardclau committed Mar 6, 2016
1 parent dab22c0 commit c002a86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/symlink-shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

# Symlinks shared paths
- name: ANSISTRANO | Create softlinks for shared paths
file: state=link path={{ ansistrano_release_path.stdout }}/{{ item }} src={{ ansistrano_deploy_to }}/shared/{{ item }}
file: state=link path={{ ansistrano_release_path.stdout }}/{{ item }} src=../../shared/{{ item }}
with_items: ansistrano_shared_paths
2 changes: 1 addition & 1 deletion tasks/symlink.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
# Performs symlink exchange
- name: ANSISTRANO | Change softlink to new release
file: state=link path={{ ansistrano_deploy_to }}/{{ ansistrano_current_dir }} src={{ ansistrano_release_path.stdout }}
file: state=link path={{ ansistrano_deploy_to }}/{{ ansistrano_current_dir }} src=./{{ ansistrano_version_dir }}/{{ ansistrano_release_version }}

1 comment on commit c002a86

@Olegsplit
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use like this?
file: state=link path={{ ansistrano_deploy_to }}/{{ ansistrano_current_dir }} src={{ ansistrano_deploy_to }}/{{ ansistrano_version_dir }}/{{ ansistrano_release_version }

Please sign in to comment.