Browse Source

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`.
pull/3765/head
Miao Zhou 6 years ago
committed by k8s-ci-robot
parent
commit
a585318b1a
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/download/tasks/sync_container.yml

2
roles/download/tasks/sync_container.yml

@ -97,7 +97,7 @@
mode: push mode: push
delegate_to: localhost delegate_to: localhost
delegate_facts: no delegate_facts: no
become: false
become: true
register: get_task register: get_task
until: get_task is succeeded until: get_task is succeeded
retries: 4 retries: 4

Loading…
Cancel
Save