fix: always only one docker image got synced after download

pull/2048/head
Xu Zhipei 2017-12-10 13:03:09 +08:00
parent 79417e07ca
commit 66f38a1b31
1 changed files with 11 additions and 0 deletions

View File

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