|
@ -22,13 +22,24 @@ |
|
|
image_path_cached: "{{ download_cache_dir }}/images/{{ image_filename }}" |
|
|
image_path_cached: "{{ download_cache_dir }}/images/{{ image_filename }}" |
|
|
image_path_final: "{{ local_release_dir }}/images/{{ image_filename }}" |
|
|
image_path_final: "{{ local_release_dir }}/images/{{ image_filename }}" |
|
|
|
|
|
|
|
|
- name: Set image save/load command for containerd and crio |
|
|
|
|
|
|
|
|
- name: Set image save/load command for containerd |
|
|
set_fact: |
|
|
set_fact: |
|
|
image_save_command: "{{ containerd_bin_dir }}/ctr -n k8s.io image export {{ image_path_final }} {{ image_reponame }}" |
|
|
image_save_command: "{{ containerd_bin_dir }}/ctr -n k8s.io image export {{ image_path_final }} {{ image_reponame }}" |
|
|
image_load_command: "{{ containerd_bin_dir }}/ctr -n k8s.io image import --base-name {{ download.repo }} {{ image_path_final }}" |
|
|
image_load_command: "{{ containerd_bin_dir }}/ctr -n k8s.io image import --base-name {{ download.repo }} {{ image_path_final }}" |
|
|
when: container_manager == 'containerd' |
|
|
when: container_manager == 'containerd' |
|
|
|
|
|
|
|
|
- name: Set image save/load command for containerd and crio on localhost |
|
|
|
|
|
|
|
|
- name: Set image save/load command for crio |
|
|
|
|
|
set_fact: |
|
|
|
|
|
image_save_command: "skopeo copy containers-storage:{{ image_reponame }} docker-archive:{{ image_path_final }}" |
|
|
|
|
|
image_load_command: "skopeo copy docker-archive:{{ image_path_final }} containers-storage:{{ image_reponame }}" |
|
|
|
|
|
when: container_manager == 'crio' |
|
|
|
|
|
|
|
|
|
|
|
- name: Set image save/load command for containerd on localhost |
|
|
set_fact: |
|
|
set_fact: |
|
|
image_save_command_on_localhost: "{{ containerd_bin_dir }}/ctr -n k8s.io image export {{ image_path_cached }} {{ image_reponame }}" |
|
|
image_save_command_on_localhost: "{{ containerd_bin_dir }}/ctr -n k8s.io image export {{ image_path_cached }} {{ image_reponame }}" |
|
|
when: container_manager_on_localhost == 'containerd' |
|
|
when: container_manager_on_localhost == 'containerd' |
|
|
|
|
|
|
|
|
|
|
|
- name: Set image save/load command for crio on localhost |
|
|
|
|
|
set_fact: |
|
|
|
|
|
image_save_command_on_localhost: "skopeo copy containers-storage:{{ image_reponame }} docker-archive:{{ image_path_final }}" |
|
|
|
|
|
when: container_manager_on_localhost == 'crio' |