From a585318b1a8005b4cb24a9804c3a0d8f17acecbf Mon Sep 17 00:00:00 2001 From: Miao Zhou Date: Mon, 26 Nov 2018 23:00:34 +0800 Subject: [PATCH] Fix Sync Container Permission (#3752) When `ansible_user` is not root, using `-b` option. And with `download_run_once` and `download_localhost` set `true`. Ansible will executes `container_download | upload container images to nodes` task. It uses rsync to upload images to `/tmp/release/container/`, but the `container` directory owned by `root`. --- roles/download/tasks/sync_container.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/download/tasks/sync_container.yml b/roles/download/tasks/sync_container.yml index b9cb69a30..2801a6f5d 100644 --- a/roles/download/tasks/sync_container.yml +++ b/roles/download/tasks/sync_container.yml @@ -97,7 +97,7 @@ mode: push delegate_to: localhost delegate_facts: no - become: false + become: true register: get_task until: get_task is succeeded retries: 4