Change failure condition for image container download (#12321)

When installing with `download_run_once`, nerdctl will log to stderr and
cause a failure even if the image was saved successfully. Instead we
rely on the shell exit code to detect the failure.

Signed-off-by: Alejandro Macedo <alex.macedopereira@gmail.com>
This commit is contained in:
Alejandro Macedo
2026-06-21 05:51:41 -05:00
committed by GitHub
parent 9f7ea6632c
commit 8a5cfe8d77
@@ -74,7 +74,6 @@
delegate_to: "{{ download_delegate }}"
delegate_facts: false
register: container_save_status
failed_when: container_save_status.stderr
run_once: true
become: "{{ user_can_become_root | default(false) or not download_localhost }}"
when: