From f5474ec6ccdc11f51a5f2a8f30ba6b27e8237eda Mon Sep 17 00:00:00 2001 From: Max Gautier <mg@max.gautier.name> Date: Fri, 9 Feb 2024 14:04:28 +0000 Subject: [PATCH] Don't try to set permissions recursively on cache+staging directory (#10900) This should avoid permissions problems when the user creating the directory and the user creating the content are different (when containers images are saved by root for instances, because the user can't use the container runtime). --- roles/download/tasks/prep_download.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/roles/download/tasks/prep_download.yml b/roles/download/tasks/prep_download.yml index 4c737e8e6..58e508491 100644 --- a/roles/download/tasks/prep_download.yml +++ b/roles/download/tasks/prep_download.yml @@ -69,7 +69,6 @@ file: path: "{{ local_release_dir }}/images" state: directory - recurse: yes mode: 0755 owner: "{{ ansible_ssh_user | default(ansible_user_id) }}" when: @@ -79,7 +78,6 @@ file: path: "{{ download_cache_dir }}/images" state: directory - recurse: yes mode: 0755 delegate_to: localhost connection: local -- GitLab