Skip to content

Commit

Permalink
Merge pull request #148 from ansistrano/ensure_shared_absent
Browse files Browse the repository at this point in the history
ensure shared targets are absent is back
  • Loading branch information
ricardclau committed Jul 22, 2016
2 parents fa3eece + 167069b commit d192b5d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 11 additions & 1 deletion tasks/symlink-shared.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
---
# Ensure symlinks target paths is absent
# This was removed in 1.7.3 to improve speed but it introduced regressions in cases where
# there are .gitkeep files in such folders (common practice in some PHP frameworks)
- name: ANSISTRANO | Ensure shared paths targets are absent
file:
state: absent
path: "{{ ansistrano_release_path.stdout }}/{{ item }}"
with_flattened:
- "{{ ansistrano_shared_paths }}"
- "{{ ansistrano_shared_files }}"

# Ensure shared path exists
- name: ANSISTRANO | Ensure shared paths exists
file:
Expand All @@ -19,7 +30,6 @@
state: link
path: "{{ ansistrano_release_path.stdout }}/{{ item }}"
src: "{{ item | regex_replace('[^\\/]*', '..') }}/../shared/{{ item }}"
force: yes
with_flattened:
- "{{ ansistrano_shared_paths }}"
- "{{ ansistrano_shared_files }}"
Expand Down
1 change: 0 additions & 1 deletion test/tasks/after-symlink.yml

This file was deleted.

0 comments on commit d192b5d

Please sign in to comment.