1234567891011121314151617181920212223 |
- ---
- # Pulls any images that will be needed on workstation during the training.
- - name: make sure all the required images are there
- containers.podman.podman_image:
- name: "{{ item.name }}"
- auth_file: "{{ 'roles/' + role_name + '/files/' + (item.auth_file | default('emptyauth')) }}"
- pull: true
- push: false
- state: present
- loop: "{{ pull_images }}"
- loop_control:
- label: "{{ item.name }}"
- - name: if so desired, tag the image as latest
- containers.podman.podman_tag:
- image: "{{ item.name }}"
- target_names:
- - "{{ item.name | regex_replace(':.*$', ':latest') }}"
- when: item.tag_latest
- loop: "{{ pull_images }}"
- loop_control:
- label: "{{ item.name }}"
- ...
|