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).
This commit is contained in:
@ -69,7 +69,6 @@
|
|||||||
file:
|
file:
|
||||||
path: "{{ local_release_dir }}/images"
|
path: "{{ local_release_dir }}/images"
|
||||||
state: directory
|
state: directory
|
||||||
recurse: yes
|
|
||||||
mode: 0755
|
mode: 0755
|
||||||
owner: "{{ ansible_ssh_user | default(ansible_user_id) }}"
|
owner: "{{ ansible_ssh_user | default(ansible_user_id) }}"
|
||||||
when:
|
when:
|
||||||
@ -79,7 +78,6 @@
|
|||||||
file:
|
file:
|
||||||
path: "{{ download_cache_dir }}/images"
|
path: "{{ download_cache_dir }}/images"
|
||||||
state: directory
|
state: directory
|
||||||
recurse: yes
|
|
||||||
mode: 0755
|
mode: 0755
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
connection: local
|
connection: local
|
||||||
|
Reference in New Issue
Block a user