Fix the format of the list of images extracted from kubeadm (#11741)

The download role expect 'groups' be a list, in order to properly filter
images.
pull/11745/head
Max Gautier 2024-11-25 10:06:56 +01:00 committed by GitHub
parent 83a340baf1
commit 2e145ffc12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@
container: true container: true
repo: "{{ item | regex_replace('^(.*):.*$', '\\1') }}" repo: "{{ item | regex_replace('^(.*):.*$', '\\1') }}"
tag: "{{ item | regex_replace('^.*:(.*)$', '\\1') }}" tag: "{{ item | regex_replace('^.*:(.*)$', '\\1') }}"
groups: k8s_cluster groups:
- k8s_cluster
loop: "{{ kubeadm_images_list | flatten(levels=1) }}" loop: "{{ kubeadm_images_list | flatten(levels=1) }}"
register: kubeadm_images_cooked register: kubeadm_images_cooked
run_once: true run_once: true