Merge "Switch to podman_image module"

This commit is contained in:
Zuul 2020-04-03 16:52:35 +00:00 committed by Gerrit Code Review
commit 95a7886ba1
1 changed files with 10 additions and 2 deletions

View File

@ -137,10 +137,18 @@ outputs:
- when:
- (step|int) == 1
block:
# TODO(mwhahaha): figure out the bug in podman_image
# NOTE(mwhahaha): validate_certs is a misnomer because what it
# actually does is enable the --tls-verify flag which forces
# registries to only be over HTTPS. By default, podman will only
# use HTTPS registries but has a way to configure specific insecure
# and non-HTTPS registries. The --tls-verify flag prevents this
# fallback from functioning. We rely on this fallback for the
# undercloud registry.
- name: Pre-fetch all the containers
become: true
shell: podman pull "{{ container_image }}"
podman_image:
name: "{{ container_image }}"
validate_certs: false
loop_control:
loop_var: container_image
loop: "{{ lookup('file', tripleo_role_name + '/docker_config.yaml', errors='ignore') | default('{}', True) | from_yaml | recursive_get_key_from_dict(key='image') | unique }}"