Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure logrotate image is also pre-downloaded #389

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -76,3 +76,11 @@
ansible.builtin.include_role:
name: osp.edpm.edpm_neutron_dhcp
tasks_from: download_cache.yml

- name: Download images for edpm_logrotate_crond role
luis5tb marked this conversation as resolved.
Show resolved Hide resolved
ansible.builtin.include_role:
name: osp.edpm.edpm_logrotate_crond
tasks_from: download_cache_images.yml
tags:
- edpm_logrotate_crond
- download_cache
2 changes: 1 addition & 1 deletion roles/edpm_download_cache/tasks/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
- name: Download packages for edpm_logrotate_crond role
ansible.builtin.include_role:
name: osp.edpm.edpm_logrotate_crond
tasks_from: download_cache.yml
tasks_from: download_cache_packages.yml
tags:
- edpm_logrotate_crond
- download_cache
Expand Down
10 changes: 10 additions & 0 deletions roles/edpm_logrotate_crond/tasks/download_cache_images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---

- name: Download needed container images
containers.podman.podman_image:
name: "{{ edpm_logrotate_crond_image }}"
become: true
register: edpm_logrotate_crond_cronie_images_download
until: edpm_logrotate_crond_cronie_images_download.failed == false
retries: "{{ edpm_logrotate_crond_download_retries }}"
delay: "{{ edpm_logrotate_crond_download_delay }}"
4 changes: 1 addition & 3 deletions roles/edpm_ovn_bgp_agent/tasks/download_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

- name: Download needed container images
containers.podman.podman_image:
name: "{{ item }}"
loop:
- "{{ edpm_ovn_bgp_agent_image }}"
name: "{{ edpm_ovn_bgp_agent_image }}"
become: true
register: edpm_ovn_bgp_agent_images_download
until: edpm_ovn_bgp_agent_images_download.failed == false
Expand Down