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`.
This commit is contained in:
Miao Zhou 2018-11-26 23:00:34 +08:00 committed by k8s-ci-robot
parent 07d2f1aa36
commit a585318b1a

View file

@ -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