mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-30 22:16:23 -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
|
- name: Check_pull_required | Set pull_required if the desired image is not yet loaded
|
||||||
set_fact:
|
set_fact:
|
||||||
pull_required: >-
|
pull_required: "{{ (image_reponame | regex_replace('^docker\\.io/(library/)?', '')) not in docker_images.stdout.split(',') }}"
|
||||||
{%- if image_reponame | regex_replace('^docker\.io/(library/)?', '') in docker_images.stdout.split(',') %}false{%- else -%}true{%- endif -%}
|
|
||||||
when: not download_always_pull
|
when: not download_always_pull
|
||||||
|
|
||||||
- name: Check_pull_required | Check that the local digest sha256 corresponds to the given image tag
|
- name: Check_pull_required | Check that the local digest sha256 corresponds to the given image tag
|
||||||
|
|||||||
@@ -27,4 +27,4 @@
|
|||||||
- download.enabled
|
- download.enabled
|
||||||
- item.value.enabled
|
- item.value.enabled
|
||||||
- (not download.container) or (download.container and download_container)
|
- (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