From df90d4ca40bbd417e40ed1a235ababd43062891a Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 24 Jun 2021 18:05:06 +0200 Subject: [PATCH] [mirror] USe relative paths for symlinks Signed-off-by: Yohann D'ANELLO --- roles/apt-mirror/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/apt-mirror/tasks/main.yml b/roles/apt-mirror/tasks/main.yml index 47f7d65a..2080afe3 100644 --- a/roles/apt-mirror/tasks/main.yml +++ b/roles/apt-mirror/tasks/main.yml @@ -18,7 +18,8 @@ - name: Create mirror symlink file: - src: "{{ apt_mirror.root }}/{{ item.host }}/{{ item.symlink }}" + # Use relative path to stay modular if the folder is mounted on multiple server at different locations + src: "{{ item.host }}/{{ item.symlink }}" dest: "{{ apt_mirror.root }}/{{ item.name }}" mode: 0755 state: link