mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-29 22:03:22 -02:30
fix/ansible-core 2.19: implicit list to bool conversion in download (#13470)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) != [])
|
||||
|
||||
Reference in New Issue
Block a user