Skip to content
Snippets Groups Projects
Commit 494a6512 authored by Sergey's avatar Sergey Committed by Kubernetes Prow Robot
Browse files

fix bug: run Copy image to ansible host cache on download_delegate host (#5094)

* run 'task download_container | Copy image to ansible host cache' with synchronize on download_delegate host

* try to run task copy file to ansible host on all inventory, not only on first random host
parent 3732c3a9
No related branches found
No related tags found
No related merge requests found
......@@ -118,10 +118,10 @@
use_ssh_args: "{{ has_bastion | default(false) }}"
mode: pull
delegate_facts: no
run_once: true
when:
- download_force_cache
- not download_localhost
- download_delegate == inventory_hostname
- not image_is_cached or (image_changed | default(true))
- ansible_os_family not in ["CoreOS", "Container Linux by CoreOS"]
......
......@@ -111,7 +111,6 @@
dest: "{{ file_path_cached }}"
use_ssh_args: "{{ has_bastion | default(false) }}"
mode: pull
run_once: true
when:
- download_force_cache
- not file_is_cached or get_url_result.changed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment