Browse Source

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
pull/5101/head
Sergey 5 years ago
committed by Kubernetes Prow Robot
parent
commit
494a6512b8
2 changed files with 1 additions and 2 deletions
  1. 2
      roles/download/tasks/download_container.yml
  2. 1
      roles/download/tasks/download_file.yml

2
roles/download/tasks/download_container.yml

@ -118,10 +118,10 @@
use_ssh_args: "{{ has_bastion | default(false) }}" use_ssh_args: "{{ has_bastion | default(false) }}"
mode: pull mode: pull
delegate_facts: no delegate_facts: no
run_once: true
when: when:
- download_force_cache - download_force_cache
- not download_localhost - not download_localhost
- download_delegate == inventory_hostname
- not image_is_cached or (image_changed | default(true)) - not image_is_cached or (image_changed | default(true))
- ansible_os_family not in ["CoreOS", "Container Linux by CoreOS"] - ansible_os_family not in ["CoreOS", "Container Linux by CoreOS"]

1
roles/download/tasks/download_file.yml

@ -111,7 +111,6 @@
dest: "{{ file_path_cached }}" dest: "{{ file_path_cached }}"
use_ssh_args: "{{ has_bastion | default(false) }}" use_ssh_args: "{{ has_bastion | default(false) }}"
mode: pull mode: pull
run_once: true
when: when:
- download_force_cache - download_force_cache
- not file_is_cached or get_url_result.changed - not file_is_cached or get_url_result.changed

|||||||
100:0
Loading…
Cancel
Save