Add action for pulling docker images
Proposal
This role is used for starting systemd service (simply docker or docker compose). Sometimes especially when compose contains many big enough docker images pulling them during service start may lead to timeouts. We should add action for pulling images and use them in service-base
and service-compose
actions.
This action should be public to use it seperently also.
Code example
- name: "pull {{ _some_service }} service Docker container image"
become: yes
docker_image:
name: "{{ _some_service_image }}"
source: "pull"
force_source: yes
register: "_result_some_service_docker_image_pull"
Edited by Krzysztof Szymański