main.yml 703 B

1234567891011121314151617181920212223
  1. ---
  2. # Pulls any images that will be needed on workstation during the training.
  3. - name: make sure all the required images are there
  4. containers.podman.podman_image:
  5. name: "{{ item.name }}"
  6. auth_file: "{{ 'roles/' + role_name + '/files/' + (item.auth_file | default('emptyauth')) }}"
  7. pull: true
  8. push: false
  9. state: present
  10. loop: "{{ pull_images }}"
  11. loop_control:
  12. label: "{{ item.name }}"
  13. - name: if so desired, tag the image as latest
  14. containers.podman.podman_tag:
  15. image: "{{ item.name }}"
  16. target_names:
  17. - "{{ item.name | regex_replace(':.*$', ':latest') }}"
  18. when: item.tag_latest
  19. loop: "{{ pull_images }}"
  20. loop_control:
  21. label: "{{ item.name }}"
  22. ...