Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions roles/live_symlink/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
when:
- live_symlink.symlinks | length
- deploy_operation == 'deploy'
loop_control:
loop_var: link
with_items: "{{ live_symlink.symlinks }}"
block:
- name: Ensure additional symlink sources exist.
ansible.builtin.file:
path: "{{ link.src }}"
state: directory
mode: '0755'
with_items: "{{ live_symlink.symlinks }}"
loop_control:
loop_var: link

- name: Create additional symlinks.
ansible.builtin.file:
Expand All @@ -53,3 +53,6 @@
state: link
follow: false
force: "{{ link.force | default(true) }}"
with_items: "{{ live_symlink.symlinks }}"
loop_control:
loop_var: link
Loading