fix/ansible-core 2.19: implicit list to bool conversion in download (#13470)

This commit is contained in:
Max Gautier
2026-09-09 05:24:34 +00:00
committed by GitHub
parent 712d13bd48
commit 8e8751465b
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -10,8 +10,7 @@
- name: Check_pull_required | Set pull_required if the desired image is not yet loaded
set_fact:
pull_required: >-
{%- if image_reponame | regex_replace('^docker\.io/(library/)?', '') in docker_images.stdout.split(',') %}false{%- else -%}true{%- endif -%}
pull_required: "{{ (image_reponame | regex_replace('^docker\\.io/(library/)?', '')) not in docker_images.stdout.split(',') }}"
when: not download_always_pull
- name: Check_pull_required | Check that the local digest sha256 corresponds to the given image tag
+1 -1
View File
@@ -27,4 +27,4 @@
- download.enabled
- item.value.enabled
- (not download.container) or (download.container and download_container)
- (download_run_once and inventory_hostname == download_delegate) or (group_names | intersect(download.groups) | length)
- (download_run_once and inventory_hostname == download_delegate) or (group_names | intersect(download.groups) != [])