diff --git a/roles/edpm_download_cache/tasks/container_images.yml b/roles/edpm_download_cache/tasks/container_images.yml index b10099a39..9afcb3063 100644 --- a/roles/edpm_download_cache/tasks/container_images.yml +++ b/roles/edpm_download_cache/tasks/container_images.yml @@ -60,3 +60,11 @@ ansible.builtin.include_role: name: osp.edpm.edpm_neutron_dhcp tasks_from: download_cache.yml + +- name: Download images for edpm_logrotate_crond role + ansible.builtin.include_role: + name: osp.edpm.edpm_logrotate_crond + tasks_from: download_cache.yml + tags: + - edpm_logrotate_crond + - download_cache diff --git a/roles/edpm_logrotate_crond/tasks/download_cache.yml b/roles/edpm_logrotate_crond/tasks/download_cache.yml index cb9edcba4..3a718d637 100644 --- a/roles/edpm_logrotate_crond/tasks/download_cache.yml +++ b/roles/edpm_logrotate_crond/tasks/download_cache.yml @@ -9,3 +9,14 @@ until: edpm_logrotate_crond_cronie_package_download.rc == 0 retries: "{{ edpm_logrotate_crond_download_retries }}" delay: "{{ edpm_logrotate_crond_download_delay }}" + +- name: Download needed container images + containers.podman.podman_image: + name: "{{ item }}" + loop: + - "{{ edpm_logrotate_crond_image }}" + become: true + register: edpm_logrotate_crond_cronie_images_download + until: edpm_logrotate_crond_cronie_images_download.rc == false + retries: "{{ edpm_logrotate_crond_download_retries }}" + delay: "{{ edpm_logrotate_crond_download_delay }}"