Add download_container flag to avoid docker pull when use cri-o.

This commit is contained in:
Takashi Okamoto
2018-08-04 10:01:35 +00:00
parent cf7b9cfeef
commit 5ab8a712d9
5 changed files with 11 additions and 3 deletions

View File

@@ -7,6 +7,7 @@
failed_when: false
changed_when: false
check_mode: no
when: download_container
- name: container_download | Create dest directory for saved/loaded container images
file:
@@ -15,6 +16,7 @@
recurse: yes
mode: 0755
owner: "{{ansible_ssh_user|default(ansible_user_id)}}"
when: download_container
- name: container_download | create local directory for saved/loaded container images
file:
@@ -28,5 +30,6 @@
when:
- download_run_once
- download_delegate == 'localhost'
- download_container
tags:
- localhost