Skip to content

Commit

Permalink
Ensure logrotate image is also pre-downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
luis5tb committed Oct 4, 2023
1 parent 2ecdfc8 commit a9dd6e4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions roles/edpm_download_cache/tasks/container_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions roles/edpm_logrotate_crond/tasks/download_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

0 comments on commit a9dd6e4

Please sign in to comment.