From 66f38a1b3162b2def4609763448c9979b5b16711 Mon Sep 17 00:00:00 2001
From: Xu Zhipei <xuzhipei@gmail.com>
Date: Sun, 10 Dec 2017 13:03:09 +0800
Subject: [PATCH] fix: always only one docker image got synced after download

---
 roles/download/tasks/sync_container.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/roles/download/tasks/sync_container.yml b/roles/download/tasks/sync_container.yml
index 2a03b014c..a15f78cde 100644
--- a/roles/download/tasks/sync_container.yml
+++ b/roles/download/tasks/sync_container.yml
@@ -1,4 +1,15 @@
 ---
+- name: container_download | Make download decision if pull is required by tag or sha256
+  include: set_docker_image_facts.yml
+  delegate_to: "{{ download_delegate if download_run_once or omit }}"
+  delegate_facts: no
+  run_once: "{{ download_run_once }}"
+  when:
+    - download.enabled
+    - download.container
+  tags:
+    - facts
+
 - set_fact:
     fname: "{{local_release_dir}}/containers/{{download.repo|regex_replace('/|\0|:', '_')}}:{{download.tag|default(download.sha256)|regex_replace('/|\0|:', '_')}}.tar"
   run_once: true
-- 
GitLab